API Reference
Create offer
POST
Body
application/json
Delivery address details
Example:
{
"line1": "123 Main St",
"line2": "Apt 101",
"city": "Springfield",
"stateOrProvince": "IL",
"postalCode": "62701"
}
Replacement product and add-ons covered by warranty
Example:
{
"sku": "GDF511PGRBB",
"addons": [
{ "sku": "M007", "quantity": 1 },
{ "sku": "M021", "quantity": 1 },
{ "sku": "M402", "quantity": 1 },
{ "sku": "M421", "quantity": 1 },
{ "sku": "M435", "quantity": 1 }
]
}
Whether to send the offer email immediately after creation
Example:
true
Amount that customer can opt to receive in lieu of a replacement product
Required range:
x >= 0
Example:
500
Whether to include upsells in the offer
Example:
true
Response
201
application/json
Offer created successfully
Unique identifier for the offer
Example:
"testofferid"
Timestamp when the offer was created
Example:
"2024-01-20T12:00:00Z"
Link to allow the customer to authenticate and view the offer