<aside> š” Date: 2025-02-06
The new v3 API endpoints have been added, with several important differences compared to v2. Each version will be maintained separately, and the key differences between the existing v2 and the new v3 are outlined below.
API Path | Version |
---|---|
https://api.realpacking.com/v3 | 2025-01-09 |
https://api.realpacking.com/v2 | 2024-01-02 |
If a request is made to an incorrect path (anything other than v2 or v3), the server will return a 400 Bad Request
with the following error message:
{
"message": "Invalid API version path"
}
If the version header does not match the path, the server will return a 400 Bad Request
with the following error message:
{
"message": "Invalid API version header"
}
If a v3 API key is used to access a v2 path, the server will return a 403 Forbidden
with the following error message:
{
"message": "You do not have access to API version 'v2'"
}
v2 | v3 | |
---|---|---|
Phone number format for Order Registration API and Modify an Order API | No restrictions | E.164 format required |
HTTP status codes for successful video iframe API calls | 200 OK , 205 Reset Content |
Only 200 OK supported |
POST /v3/orders
(Order Registration)PUT /v3/orders
(Modify an Order)ordererPhoneNo
: Ordererās Phone NumberordererMobileNo
: Ordererās Mobile NumberreceiverPhoneNo
: Receiverās Phone NumberreceiverMobileNo
: Receiverās Mobile NumberMust follow the E.164 format.
Requests with incorrect phone number formats will result in a 400 Bad Request
with the following error message:
{
"message": "invalid phone number. please use E.164 format"
}
GET /v3/videos/{videoCode}/embed
205 Reset Content
response code has been removed.200 OK
only.205 Reset Content
response in the video iframe API when migrating from v2 to v3, please note that the 205 Reset Content
response is no longer supported. Update it to handle the 200 OK
response instead.
</aside>