Skip to main content
POST
/
v1
/
pvt
/
POS
/
orders
This is shortcut for the original /orders endpoint to add orders into BonifiQ
curl --request POST \
  --url https://api.bonifiq.com.br/v1/pvt/POS/orders \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "OriginalId": "<string>",
  "OrderPlacementDate": "2023-11-07T05:31:56Z",
  "OrderCompletedDate": "2023-11-07T05:31:56Z",
  "OrderCancelledDate": "2023-11-07T05:31:56Z",
  "OrderStatus": "<string>",
  "IsCancelledOrReturned": true,
  "IsCompleted": true,
  "OrderTotal": 123,
  "Customer": {
    "OriginalId": "<string>",
    "Name": "<string>",
    "Email": "<string>",
    "Phone": "<string>",
    "BirthdayDate": "2023-11-07T05:31:56Z",
    "SignupDate": "2023-11-07T05:31:56Z",
    "Document": "<string>",
    "IsEnrolled": true
  },
  "Products": [
    {
      "OriginalId": "<string>",
      "Title": "<string>",
      "Url": "<string>",
      "ImageUrl": "<string>",
      "IsActive": true,
      "ProductPrice": 123,
      "ProductBrand": {
        "OriginalId": "<string>",
        "Name": "<string>"
      }
    }
  ],
  "UpdatedDate": "2023-11-07T05:31:56Z",
  "Coupon": "<string>",
  "Metadatas": [
    {
      "Name": "<string>",
      "Value": "<string>"
    }
  ],
  "PaymentMethod": {
    "OriginalId": "<string>",
    "Name": "<string>"
  },
  "Branch": {
    "OriginalId": "<string>",
    "Name": "<string>"
  },
  "SalesPerson": {
    "OriginalId": "<string>",
    "Name": "<string>"
  },
  "ExternalCoupon": "<string>"
}
'
{
  "ErrorMessage": "<string>",
  "ErrorCode": 123,
  "Result": {
    "Id": 123,
    "OriginalId": "<string>",
    "OrderPlacementDate": "2023-11-07T05:31:56Z",
    "OrderCompletedDate": "2023-11-07T05:31:56Z",
    "OrderCancelledDate": "2023-11-07T05:31:56Z",
    "OrderStatus": "<string>",
    "IsCancelledOrReturned": true,
    "IsCompleted": true,
    "OrderTotal": 123,
    "Customer": {
      "Id": 123,
      "OriginalId": "<string>",
      "Name": "<string>",
      "Email": "<string>",
      "Phone": "<string>",
      "BirthdayDate": "2023-11-07T05:31:56Z",
      "SignupDate": "2023-11-07T05:31:56Z",
      "Document": "<string>",
      "IsEnrolled": true,
      "PointsBalance": 123,
      "BalanceOfPoints": 123,
      "Cashback": 123,
      "BirthdayUpdateDate": "2023-11-07T05:31:56Z",
      "FirstName": "<string>",
      "PublicId": "<string>",
      "SecondaryId": "<string>",
      "OrderCount": 123,
      "ReasonEnrolled": "<string>",
      "AdminId": 123,
      "EmailAdmin": "<string>",
      "EnrolledDate": "2023-11-07T05:31:56Z",
      "TierName": "<string>",
      "Origin": 0,
      "RfmGroup": 0,
      "RfmGroupName": "<string>",
      "Affiliate": {
        "Id": 123,
        "CustomerId": 123,
        "IsActive": true,
        "AffiliateCoupon": "<string>",
        "LastUpdated": "2023-11-07T05:31:56Z",
        "CouponHistories": [
          {
            "Id": 123,
            "AffiliateId": 123,
            "Coupon": "<string>",
            "AssociatedDate": "2023-11-07T05:31:56Z"
          }
        ]
      }
    },
    "Products": [
      {
        "OriginalId": "<string>",
        "Title": "<string>",
        "Url": "<string>",
        "ImageUrl": "<string>",
        "IsActive": true,
        "ProductPrice": 123
      }
    ],
    "UpdatedDate": "2023-11-07T05:31:56Z",
    "Coupon": "<string>",
    "State": 0,
    "Origin": 0,
    "Metadatas": [
      {
        "Id": 123,
        "OrderId": 123,
        "Name": "<string>",
        "Value": "<string>"
      }
    ]
  },
  "HasError": true
}

Authorizations

Authorization
string
header
required

Use API Basic Auth Keys

Body

application/json

Purchase Order Model

OriginalId
string

This is the Id in the client store.

OrderPlacementDate
string<date-time>

Date of the customer's purchase.

OrderCompletedDate
string<date-time> | null

Date the order reached the completed state (usually it's invoiced or delivered).

OrderCancelledDate
string<date-time> | null

if the order is cancelled, contains the date.

OrderStatus
string

Status at the client's order system.

IsCancelledOrReturned
boolean

if true the order was cancelled or returned.

IsCompleted
boolean

If true it means the order has reached its final status and points can be awarded to the consumer.

OrderTotal
number<decimal>

Can be used at Loyalty Programs. Important: these values should not include Shipping costs.

Customer
object

Buyer registration.

Products
object[] | null

Products listed on the order.

UpdatedDate
string<date-time>

the date from the last update on this order.

Coupon
string | null

Coupon code used on this order.

Metadatas
object[] | null

This is a key-value list of extra information regarding the order. It could be informative only or being part of an business rule to be used later.

PaymentMethod
object

The Payment Method used in this purchase. Should be the more specific as possible (ie: instead of using "Credit Card" use "Visa Credit Card" and so on). This field can be used later on to create extra points purchase rules

Branch
object

A Branch is physical location or outlet of a store (loja, filial, etc). This is used to receive information of which store the purchase was made. It can be later used to create rules for points or filtering reports.

SalesPerson
object

A sales person is the person responsible for the sale. It can be used for filtering reports.

ExternalCoupon
string | null

Response

200 - application/json
ErrorMessage
string | null

Error message or description

ErrorCode
integer<int32> | null

Optional error code, if available

Result
object

This class represents a request with an external Id (such as OrderId) in a third-party system

HasError
boolean

If true the request had an error.