Most Wineshipping API methods require credentials to be sent in the request body using an Authentication object. This object includes three values that identify and authorize the caller.
| Name | Type | Description |
|---|---|---|
UserKey | String | User key issued by Wineshipping. |
Password | String | Password associated with the user key. |
CustomerNo | String | Wineshipping customer account number. |
{
"Authentication": {
"UserKey": "YOUR_USER_KEY",
"Password": "YOUR_PASSWORD",
"CustomerNo": "YOUR_CUSTOMER_NUMBER"
}
}Include this object in the body of each request that requires authentication. Operations without the object will return 401 Unauthorized.