Payments
Get Payments
GET https://api-b2b.bigcommerce.com/api/v3/io/ip/paymentsRequest
Get payment list
Authentication
- authToken in header
Parameters
- offset in query - numberPagination offset
- limit in query - numberPagination limit
- orderBy in query - string"DESC" or "ASC"Example: DESC
Allowed: DESC | ASC
- sortBy in query - stringSort by the field valueExample: createdAt
Allowed: moduleName | processingStatus | appliedStatus | createdAt | customerId | externalCustomerId | fundingStatus | updatedAt | totalAmount
- searchBy in query - stringFilter by a field
Allowed: id | customerId | externalId | externalCustomerId
- q in query - stringYou can perform keyword queries on fields corresponding to the value of "searchBy" or, if "searchBy" is empty, on all fields supported by "searchBy".
- customerName in query - stringQuery by invoice B2B Edition company name
- invoiceId in query - numberQuery by Invoice ID
- processingStatus in query - numberpayment processing status(0="Incomplete", 1="Awaiting Processing", 2="Processing", 3="Completed", 4="Refunded")Example: 3
Allowed: 0 | 1 | 2 | 3 | 4
- channelIds in query - arrayQuery by BigCommerce Channel IDs. This parameter is not needed if you don't have multiple storefront channels.Type: array[number]
example
Response
OK
Body
object | application/json
codenumber
requireddataarray[object]
required
200
Get Payment Detail
GET https://api-b2b.bigcommerce.com/api/v3/io/ip/payments/{paymentId}Request
Get payment detail
Authentication
- authToken in header
Parameters
- paymentId in path - numberrequiredPayment ID
example
Response
OK
Body
object | application/json
codenumber
requireddataobject
required
200
Delete a Payment
DELETE https://api-b2b.bigcommerce.com/api/v3/io/ip/payments/{paymentId}Request
Delete a payment
Authentication
- authToken in header
Parameters
- paymentId in path - numberrequiredPayment ID
example
Response
OK
Body
object | application/json
codenumber
requireddataobject
required
200
Get a Payment Operation
GET https://api-b2b.bigcommerce.com/api/v3/io/ip/payments/{paymentId}/operationsRequest
Get a payment for all operations
Authentication
- authToken in header
Parameters
- paymentId in path - numberrequiredPayment ID
example
Response
OK
Body
object | application/json
codenumber
requireddataobject
required
200
Performing Payment Operation
POST https://api-b2b.bigcommerce.com/api/v3/io/ip/payments/{paymentId}/operationsRequest
Performing payment operation
Authentication
- authToken in header
Parameters
- paymentId in path - numberrequiredPayment ID
Body
object | application/json
operationCodenumber
requiredPayment operation code. The list of allowed operations for this payment.Allowed: 0 | 1 | 2 | 3
200
Response
OK
Body
object | application/json
codenumber
requireddataobject
required
200
Update Payment Processing Status
PUT https://api-b2b.bigcommerce.com/api/v3/io/ip/payments/{paymentId}/processing-statusRequest
Update payment processing status
Authentication
- authToken in header
Parameters
- paymentId in path - numberrequiredPayment ID
Body
object | application/json
processingStatusnumber
requiredpayment processing status(1="Awaiting Processing", 2="Processing", 3="Completed", 4="Refunded")
example
Response
OK
Body
object | application/json
codenumber
requireddataobject
required
200
Get Payment Transactions
GET https://api-b2b.bigcommerce.com/api/v3/io/ip/payments/{paymentId}/transactionsRequest
Get payment transactions
Authentication
- authToken in header
Parameters
- paymentId in path - numberrequiredPayment ID
example
Response
OK
Body
object | application/json
codenumber
requireddataarray[object]
requiredThe array contains payment transaction information that varies and depends on the payment gateway.
200
Create Offline Payment
POST https://api-b2b.bigcommerce.com/api/v3/io/ip/payments/offlineRequest
Create offline payment
Authentication
- authToken in header
Body
object | application/json
lineItemsarray[object]
requiredcurrencystring
requireddetailsobject
requiredexternalIdstring
customerIdstring
requiredB2B Edition Company IDexternalCustomerIdstring
payerNamestring
Default is "Store Offline Payment " if no value is passed in.Default: Store offline payment
payerCustomerIdstring
The default value is the same as the customerId.processingStatusnumber
payment status, 3 is the defaultAllowed: 1 | 2 | 3 | 4
Example: 3Default: 3
channelIdinteger
BigCommerce channel ID
example
Response
OK
Body
object | application/json
codenumber
requireddataobject
required
200
Update an Offline Payment
PUT https://api-b2b.bigcommerce.com/api/v3/io/ip/payments/offline/{paymentId}Request
Update offline payment
Authentication
- authToken in header
Parameters
- paymentId in path - numberrequiredPayment ID
Body
object | application/json
lineItemsarray[object]
requiredcurrencystring
requireddetailsobject
requiredexternalIdstring
customerIdstring
requiredB2B Edition Company IDexternalCustomerIdstring
payerNamestring
Default is "Store Offline Payment " if no value is passed in.Default: Store offline payment
payerCustomerIdstring
The default is the same as the customerId.processingStatusnumber
Allowed: 1 | 2 | 3 | 4
Example: 3Default: 3
fundingStatusnumber
Allowed: 0 | 1 | 2 | 3
Default: 2
example
Response
OK
Body
object | application/json
codenumber
requireddataobject
required
200
Did you find what you were looking for?