Reference
Response Codes
Buybase response codes.
Below are the response codes used in the API:
Success Codes (200-204)
-
200 OK
SEARCH_SUCCESS
: Search completed successfullySTYLE_CREATED
: Style profile created successfullySTYLE_UPDATED
: Style profile updated successfullySTYLE_RETRIEVED
: Style profile retrieved successfullySTYLE_DELETED
: Style profile deleted successfullyPROFILE_CREATED
: User profile created successfullyPROFILE_RETRIEVED
: User profile retrieved successfullyPROFILE_DELETED
: User profile deleted successfullySHIPPING_CREATED
: Shipping address created successfullySHIPPING_UPDATED
: Shipping address updated successfullySHIPPING_RETRIEVED
: Shipping address retrieved successfullySHIPPING_DELETED
: Shipping address deleted successfully
-
204 No Content
NO_RESULTS_FOUND
: Search completed but no results found
Client Error Codes (400-404)
-
400 Bad Request
INVALID_REQUEST
: Invalid request parameters
-
403 Forbidden
FORBIDDEN_FEATURE
: The feature is not available on your current plan.
-
401 Unauthorized
UNAUTHORIZED
: No authorization header providedINVALID_API_KEY
: The API key provided is invalid
-
404 Not Found
STORE_NOT_FOUND
: Could not find store with specified ID or brand namePROFILE_NOT_FOUND
: Could not find profile with specified IDSTYLE_NOT_FOUND
: Style not foundSHIPPING_NOT_FOUND
: Shipping address not found
-
409 Conflict
SHIPPING_ADDRESS_EXISTS
: Shipping address already exists for this profileSTYLE_EXISTS
: Style already exists for this profile
Server Error Codes (500-503)
- 500 Internal Server Error
INTERNAL_ERROR
: An error occurred during processing