Create an Order

To place an order use this endpoint:

POST  https://www.giftbasketsoverseas.com/api/v1/order/create

All the data should be passed in body of POST request in JSON format.

Field NameDescriptionExample
country_iso_alpha22-Symbols Country ISO Code (Example: US)UK
order_idInternal Order Number for future Reference55
payment[type]monthlyBilling or balancemonthlyBilling
payment[amount]Amount of payment10
gifts[0][id]First Gift Id123
gifts[0][price]First Gift Cost4
gifts[1][id]Second Gift Id12
gifts[1][price]Second Gift Cost123
buyer[name]Full Name of SenderJohn Smith
buyer[phone]Sender's Phone Number+123456789
buyer[email]Sender's Email (optional)[email protected]
recipient[name]Recipient's Full NameGlennie Green
recipient[street]Recipient's Street Address including house No, Apt, Suite and etc.Apple Street 404
recipient[city]Recipient's City NameMiami
recipient[zip]Recipient's ZIPFL12304
recipient[phone]Recipient's Phone Number+123456789
recipient[state]Recipient's StateFL
gift_card_textGift Card Text (Max 180 characters)Happy Anniversary Glennie! All the Best wishes from the Team!
delivery_dateDelivery 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
    }
}