Data dictionary
Model
Address
Field | Data type | Required | Description |
region | String | No | 2-letter ISO3166 country/region code that represents the country/region of the address. More information:
|
state | String | No | State/County/Province. More information:
|
city | String | No | City/District/Suburb/Town/Village. More information:
|
address1 | String | No | Address line 1(Street address/PO Box/Company name). More information:
|
address2 | String | No | Address line 2(Apartment/Suite/Unit/Building). More information:
|
zipCode | String | No | ZIP or postal code. More information:
|
Amount
Field | Data type | Required | Description |
currency | String | Yes | 3-character ISO 4217 currency code that represents the currency used. For example, More information:
|
value | Integer | Yes | 0 or a positive integer. The value is in the smallest currency unit. For example, if the value is More information:
|
Buyer
Field | Data type | Required | Description |
referenceBuyerId | String | Yes | The unique ID assigned by the Partner to identify the buyer on the Partner's marketplace. |
FeeDetailSummary
Field | Data type | Required | Description |
feeType | String | Yes | Type of the fee requested. If no fee is requested, the parameter remains empty. |
paymentMethodType | String | Yes | Type of the payment method. Note:
|
feeAmount | Amount object | Yes | The amount of the fee. |
Order
Field | Data type | Required | Description |
referenceOrderId | String | Yes | The unique ID that is assigned by the Partner to identify the payment order. The Partner uses this field for various purposes such as displaying the Customers payment history, managing the Customer's disputes, and providing Customer support. More information:
|
transactionTime | DateTime object | Yes | The time that the payment order takes place. Note:
|
orderDescription | String | Yes | Description of the payment order. The Customer can view this information from the "Order Information" section on the Checkout page. More information:
|
orderTotalAmount | Amount object | Yes | The total amount of the payment order. The Customer views this amount on the "Payment successful" page. |
orderFeeAmount | Amount object | No | Amount of the fee for the payment order. The Customer views this amount on the "Payment successful" page. |
shippingInfo | Shipping object | No | Shipping information. |
OrderGroup
Field | Data type | Required | Description |
orderGroupId | String | Yes | The unique ID that assigned by the Partner to identify the order group. Note:
More information:
|
orderGroupDescription | String | Yes | Description of the order group. For example, More information:
|
orderBuyer | Buyer object | Yes | Information about the buyer. WorldFirst uses the value of this field for risk control purposes. |
orders | Array<Order object> | Yes | Information about the order. |
OrderResult
Field | Data type | Required | Description |
status | String | Yes | Status of the order. Valid values are:
|
statusMsg | String | Yes(Conditional) | The status message of the payment order explains the reason for the unsuccessful payment. Note:
|
PaymentDetailSummary
Field | Data type | Required | Description |
customerId | String | Yes(Conditional) | The unique ID that is assigned by WorldFirst to identify a Customer. Note:
More information:
|
customerName | UserName object | Yes | Payer's name. Give Note: This parameter enables the whitelisted partners to call payers' names. If you need this capability and are not yet in the whitelist, contact your business point of contact (BD/SA) beforehand. |
paymentAmount | Amount object | Yes | The amount of the payment that the Customer needs to pay. |
paymentMethodType | String | Yes | Type of the payment method used. Note:
|
paymentMethodMetadata | String | No | Extended information about the WorldFirst website login that the Partner uses. |
extendInfo | String | Yes(Conditional) | Extended information on the payment details. Note:
|
PaymentMethod
Field | Data type | Required | Description |
paymentMethodType | String | Yes | Defines the type of payment method. Default value is Possible values are:
|
PayToDetail
Field | Data type | Required | Description |
payToRequestId | String | Yes | The unique ID that is assigned by the Partner to identify each payment. Note:
More information:
|
referenceOrderId | String | Yes | The unique ID that is assigned by the Partner to identify the payment order. The Partner uses this field for various purposes such as displaying the Customers payment history, managing the Customer's disputes, and providing Customer support. More information:
|
payToAmount | Amount object | Yes | The amount of the payment that the Payee needs to pay. |
payToMethod | PayToMethod object | Yes | The detailed information about the payment methods that the payee uses. |
paymentNotifyUrl | String | Yes | The customized URL that is defined by the Partner to receive the payment result notification. More information:
|
paymentExpiryTime | DateTime | Optional | The time when an order expires. Note:
More information:
|
paymentTimeoutExpress | String | Optional | The timeframe in which the order must be completed. Exceeding this timeframe leads to payment rejection and order cancellation. Note:
More information:
|
PayToMethod
Field | Data type | Required | Description |
paymentMethodType | String | Yes | Defines the type of payment method. Note:
|
paymentMethodDataType | String | Yes | Defines the data type of the payment method. Note:
|
customerId | String | Yes | The unique ID that is assigned by WorldFirst to identify a Customer. More information:
|
PayToSummary
Field | Data type | Required | Description |
orderResult | OrderResult object | Yes(Conditional) | Indicates the result of the payment order. Note:
|
payToAmount | Amount object | Yes | The amount of the payment that the Payee needs to pay. |
payToRequestId | String | Yes | The unique ID that is assigned by the Partner to identify each payment. Note:
More information:
|
payToId | String | Yes | The unique ID assigned by WorldFirst to define each payment. More information:
|
payToCreateTime | DateTime object | Yes | The time that the payment order is created. Note:
|
RedirectActionForm
Field | Data type | Required | Description |
actionFormType | String | Yes | Defines the type of the action form. Valid values are:
|
method | String | Yes | The HTTP method that is used for the action form. More information:
|
parameters | String | No | The value parameter that is used for the HTTP method. More information:
|
redirectUrl | String | Yes | Redirection URL that is used for the action form. More information:
|
extendInfo | String | No | Extended information about the action form. More information:
|
RefundOrder
Field | Data type | Required | Description |
refundFeeAmount | Amount object | No | The amount of the refund fee. |
referenceRefundId | String | No | The unique ID that is assigned by the Partner to identify a refund request. More information:
|
RefundToDetail
Field | Data type | Required | Description |
refundMethod | PaymentMethod object | Yes | The payment method utilized for the refund request. |
refundAmount | Amount object | Yes | Amount that the payee refunds. |
refundToAmount | Amount object | No | Amount that the payer receives. |
extendInfo | String | No | Extended information about the refund. More information:
|
RefundDetail
Field | Data type | Required | Description |
refundMethod | PaymentMethod object | Yes | The payment method utilized for the refund request. |
refundAmount | Amount object | Yes | The amount that the payment executor pays. |
Result
Field | Data type | Required | Description |
resultCode | String | Yes | Result code. Possible values are listed in the Result codes table on this page. More information:
|
resultStatus | String | Yes | Result status. Valid values are:
|
resultMessage | String | No | Result message that explains result codes in detail. More information:
|
Shipping
Field | Data type | Required | Description |
shippingName | UserName object | No | The name of the receiver of the goods being shipped. |
shippingAddress | Address object | No | The address of the receiver of the goods being shipped. |
shippingFee | Amount object | No | Shipping fees for the goods. |
shippingCarrier | String | No | More information:
|
UserName
Field | Data type | Required | Description |
firstName | String | No | The first name of the user. More information:
|
middleName | String | No | The middle name of the user. More information:
|
lastName | String | No | The last name of the user. More information:
|
fullName | String | No | The full name of the user. More information:
|
RefundInfo
Field | Data type | Required | Description |
refundId | String | Yes | The unique ID of the refund order. More information:
|
refundRequestId | String | Yes | The unique ID of the refund request. More information:
|
payToId | String | Yes | The unique ID assigned by WorldFirst to identify a payment. More information:
|
refundReason | String | No | The reason for the refund. More information:
|
refundAmount | Amount object | Yes | The amount to be refunded. |
refundTime | DateTime | Yes | The time of refund. More information:
|
refundStatus | String | Yes | The refund status. Valid values:
|
refundOrderDetail | Array<RefundOrderDetail>object | Yes | The details of the refund order, such as the actual refunded amount, its fund type and payment method. |
RefundOrderDetail
Field | Data type | Required | Description |
refundActualAmount | Amount object | Yes | The actual refunded amount. |
fundType | String | Conditional | The type of the refund. Note: The value of this parameter is fixed as |
paymentMethodType | String | Yes | Type of the payment method used. Note: The value of this parameter is fixed as |
Enumeration
Enumeration values below are used across all APIs. An enumeration value is a predetermined set of values defined as a String.
PaymentMethodType
Key | Description |
BALANCE | Wallet balances payment. |
MIXEDCARD | Card payment. |
WALLET_WF | WorldFirst wallet payment. |