POST
/
Create offer
curl --request POST \
  --url https://api.sibipro.com/offers/ \
  --header 'Content-Type: application/json' \
  --data '{
  "customer": {
    "firstName": "John",
    "lastName": "Doe",
    "email": "john@example.com",
    "phone": "+1 (123) 456-7890"
  },
  "address": {
    "line1": "123 Main St",
    "line2": "Apt 101",
    "city": "Springfield",
    "stateOrProvince": "IL",
    "postalCode": "62701"
  },
  "product": {
    "sku": "GDF511PGRBB",
    "addons": [
      {
        "sku": "M007",
        "quantity": 1
      },
      {
        "sku": "M021",
        "quantity": 1
      },
      {
        "sku": "M402",
        "quantity": 1
      },
      {
        "sku": "M421",
        "quantity": 1
      },
      {
        "sku": "M435",
        "quantity": 1
      }
    ]
  },
  "sendOfferImmediately": true,
  "externalJobID": "<string>",
  "buyoutAmount": 50000,
  "includeUpsells": true,
  "subBrandId": "<string>"
}'
{
"id": "testofferid",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"stateOrProvince": "<string>",
"postalCode": "<string>",
"country": "<string>"
},
"createdAt": "2024-01-20T12:00:00Z",
"customerOfferLink": "<string>"
}

Body

application/json
customer
object
required
address
object
required

Delivery address details

Example:
{
"line1": "123 Main St",
"line2": "Apt 101",
"city": "Springfield",
"stateOrProvince": "IL",
"postalCode": "62701"
}
product
object
required

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 }
]
}
sendOfferImmediately
boolean
default:true

Whether to send the offer email immediately after creation

Example:

true

externalJobID
string
buyoutAmount
number

Buyout amount in cents (e.g., 50000 = $500.00). Customer can opt to receive this amount instead of a replacement product.

Required range: x >= 0
Example:

50000

includeUpsells
boolean
default:true

Whether to include upsells in the offer

Example:

true

subBrandId
string

The ID of the sub-brand used to determine customer-facing branding for the offer

Response

Offer created successfully

id
string
required

Unique identifier for the offer

Example:

"testofferid"

address
object
required
createdAt
string<date-time>
required

Timestamp when the offer was created

Example:

"2024-01-20T12:00:00Z"

Link to allow the customer to authenticate and view the offer