To place an order use this endpoint:
POST https://www.giftbasketsoverseas.com/api/v1/order/createAll the data should be passed in body of POST request in JSON format.
| Field Name | Description | Example |
|---|---|---|
| country_iso_alpha2 | 2-Symbols Country ISO Code (Example: US) | UK |
| order_id | Internal Order Number for future Reference | 55 |
| payment[type] | monthlyBilling or balance | monthlyBilling |
| payment[amount] | Amount of payment | 10 |
| gifts[0][id] | First Gift Id | 123 |
| gifts[0][price] | First Gift Cost | 4 |
| gifts[1][id] | Second Gift Id | 12 |
| gifts[1][price] | Second Gift Cost | 123 |
| buyer[name] | Full Name of Sender | John Smith |
| buyer[phone] | Sender's Phone Number | +123456789 |
| buyer[email] | Sender's Email (optional) | [email protected] |
| recipient[name] | Recipient's Full Name | Glennie Green |
| recipient[street] | Recipient's Street Address including house No, Apt, Suite and etc. | Apple Street 404 |
| recipient[city] | Recipient's City Name | Miami |
| recipient[zip] | Recipient's ZIP | FL12304 |
| recipient[phone] | Recipient's Phone Number | +123456789 |
| recipient[state] | Recipient's State | FL |
| gift_card_text | Gift Card Text (Max 180 characters) | Happy Anniversary Glennie! All the Best wishes from the Team! |
| delivery_date | Delivery Date (YYYY-MM-DD) | 2023-05-31 |
Sample JSON Payload:
{
"country_iso_alpha2": "US",
"order_id": 5,
"payment": {
"type": "monthlyBilling",
"amount": 10,
},
"buyer": {
"name": "bayer_name",
"phone": "+795283957456",
"email": "[email protected]"
},
"recipient": {
"name": "recipient_name",
"street": "street 404",
"city": "recipient_city",
"zip": "123",
"phone": "+795483957123",
"state": "XXX"
},
"gift_card_text": "HI!",
"delivery_date": "2023-05-20",
"gifts": [{
"id": 1,
"price": 4
}, {
"id": 2,
"price": 5
}]
}
Response Example:
{
"data": {
"invoice": "1682587369",
"order_id": 55
}
}
