Credit/Refund Transaction

Use this endpoint to credit an item, items or shipping cost.

Post a transaction refund

POST https://apis.sandbox.flexshopper.com/v3/transactions/:id/refund

Communicate credits that will reconciled with transaction invoices.

Path Parameters

NameTypeDescription

id

string

ID of transaction (order).

Headers

NameTypeDescription

Authorization

string

API auth token.

Request Body

NameTypeDescription

items.lineNumber*

integer

PO line number identifier.

items.sku*

string

Identifier for which item to apply the credit.

items.itemCredit

number

Amount to refund to apply to the cost of the item. Should be the full cost of the item.

items.shippingCredit

number

Amount to refund for shipping costs related to a specific item.

items

array

Array of items in a single transaction.

}
  "data": {
    "refunded": [
      {
        "sku": "ABC123",
        "lineNumber": 1
      }
    ]
  }
}

Last updated