Skip to main content
POST
/
commerce
/
customer
/
accounts
/
{accountId}
/
PurchaseOrderTransaction
Error
A valid request URL is required to generate request examples
{
  "customerPurchaseOrderAccountId": 123,
  "externalId": "<string>",
  "siteId": 123,
  "tenantId": 123,
  "transactionDate": "2023-11-07T05:31:56Z",
  "orderId": "<string>",
  "purchaseOrderNumber": "<string>",
  "transactionAmount": 123,
  "creditLimit": 123,
  "additionalTransactionDetail": "<string>",
  "availableBalance": 123,
  "transactionTypeId": 123,
  "transactionDescription": "<string>",
  "author": "<string>",
  "auditInfo": {
    "updateDate": "2023-11-07T05:31:56Z",
    "createDate": "2023-11-07T05:31:56Z",
    "updateBy": "<string>",
    "createBy": "<string>"
  }
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme.

Path Parameters

accountId
integer<int32>
required

Unique identifier of the customer account.

Query Parameters

responseFields
string

limits which fields are returned in the response body

Body

application/json

transaction log that needs to be created

Customer purchase order transaction log

customerPurchaseOrderAccountId
integer<int32>

Unique identifier for Customer purchase order account

externalId
string | null
siteId
integer<int32>

Site Id associated with transaction log

tenantId
integer<int32>

Tenant Id associated with transaction log

transactionDate
string<date-time>

Date when the transaction was made on a purchase order account

orderId
string | null

Unique identifier for an order

purchaseOrderNumber
string | null

Purchase order number

transactionAmount
number<double>

Transaction amount in transaction log for a purchase order account

creditLimit
number<double>

Maximum credit available on a purchase order account

additionalTransactionDetail
string | null

Any additional transaction detail other than transaction description

availableBalance
number<double>

Current available balance on Purchase Order account

transactionTypeId
integer<int32>

Purchase Order transaction type 1 - Line of Credit Change 2 - Order Submitted 3 - Payment Collected 4 - Payment Voided 5 - Payment Refund 6 - Manual Adjustment

transactionDescription
string | null

Purchase Order transaction description Line of Credit Change Order Submitted Payment Collected Payment Voided Payment Refund Manual Adjustment

author
string | null
auditInfo
object

Response

Success

Customer purchase order transaction log

customerPurchaseOrderAccountId
integer<int32>

Unique identifier for Customer purchase order account

externalId
string | null
siteId
integer<int32>

Site Id associated with transaction log

tenantId
integer<int32>

Tenant Id associated with transaction log

transactionDate
string<date-time>

Date when the transaction was made on a purchase order account

orderId
string | null

Unique identifier for an order

purchaseOrderNumber
string | null

Purchase order number

transactionAmount
number<double>

Transaction amount in transaction log for a purchase order account

creditLimit
number<double>

Maximum credit available on a purchase order account

additionalTransactionDetail
string | null

Any additional transaction detail other than transaction description

availableBalance
number<double>

Current available balance on Purchase Order account

transactionTypeId
integer<int32>

Purchase Order transaction type 1 - Line of Credit Change 2 - Order Submitted 3 - Payment Collected 4 - Payment Voided 5 - Payment Refund 6 - Manual Adjustment

transactionDescription
string | null

Purchase Order transaction description Line of Credit Change Order Submitted Payment Collected Payment Voided Payment Refund Manual Adjustment

author
string | null
auditInfo
object