POST | /api/v1/paymentAccount/credit | [Deprecated] Use /api/v1/paymentAccount instead. | |
---|---|---|---|
POST | /api/v1/paymentAccount | Creates a card account token based on the given data. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Address | body | Address | No | The cardholder address information for the transaction. |
ExpirationMonth | body | string | No | The expiration month. |
ExpirationYear | body | string | No | The expiration year. |
LaneId | body | int | No | The lane ID. |
PaymentAccountReferenceNumber | body | string | No | The payment account reference number |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
BillingAddress1 | body | string | No | The street address used for billing purposes. |
BillingAddress2 | body | string | No | The street address used for billing purposes. |
BillingCity | body | string | No | The name of the city used for billing purposes. |
BillingEmail | body | string | No | The e-mail address used for billing purposes. |
BillingName | body | string | No | The name used for billing purposes. |
BillingPhone | body | string | No | The phone number used for billing purposes. The recommended format is (800)555-1212. |
BillingPostalCode | body | string | No | The postal code used for billing purposes. |
BillingState | body | string | No | The name of the state used for billing purposes. This value may be any 2 character state code or the full state name. |
ShippingAddress1 | body | string | No | The street address used for shipping purposes. |
ShippingAddress2 | body | string | No | The street address used for shipping purposes. |
ShippingCity | body | string | No | The name of the city used for shipping purposes. |
ShippingEmail | body | string | No | The e-mail address used for shipping purposes. |
ShippingName | body | string | No | The name used for shipping purposes. |
ShippingPhone | body | string | No | The phone number used for shipping purposes. The recommended format is (800)555-1212 |
ShippingPostalCode | body | string | No | The postal code used for shipping purposes. |
ShippingState | body | string | No | The name of the state used for shipping purposes. This value may be any 2 character state code or the full state name. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
BinValue | body | string | No | The BIN entry that matched the account number. |
CardLogo | body | string | No | The card logo. Possible values are: Visa, Mastercard, Discover, Amex, Diners Club, JCB, Carte Blanche, Other. |
ExpirationYear | body | string | No | The card's expiration year |
ExpirationMonth | body | string | No | The card's expiration month |
PaymentAccountId | body | string | No | the payment account ID. |
PaymentAccountReferenceNumber | body | string | No | the payment account reference number. |
TerminalId | body | string | No | The ID of the terminal used during the transaction. |
AccountNumber | body | string | No | The credit card number with the value masked except for the last 4. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ApprovalNumber | body | string | No | Approval number from the processor. Depending on card type and processor an approval number might not be returned. |
IsApproved | body | bool | No | Set to true if the host approved the transaction. |
Processor | body | Processor | No | Response information from the processor. |
StatusCode | body | TransactionFlowStatus | No | The status code for the transaction.Allowable Values
|
TransactionDateTime | body | string | No | Transaction date/time in ISO8601 format |
TransactionId | body | string | No | The transaction ID from the processor |
MerchantId | body | string | No | The Merchant used to process the transaction. |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /json/reply/CreatePaymentAccountCreditRequest HTTP/1.1
Host: booking.pufferdayspa.com
Content-Type: application/json
Content-Length: length
{"address":{"billingAddress1":"String","billingAddress2":"String","billingCity":"String","billingEmail":"String","billingName":"String","billingPhone":"String","billingPostalCode":"String","billingState":"String","shippingAddress1":"String","shippingAddress2":"String","shippingCity":"String","shippingEmail":"String","shippingName":"String","shippingPhone":"String","shippingPostalCode":"String","shippingState":"String"},"expirationMonth":"String","expirationYear":"String","laneId":0,"paymentAccountReferenceNumber":"String"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"binValue":"String","cardLogo":"String","expirationYear":"String","expirationMonth":"String","paymentAccountId":"String","paymentAccountReferenceNumber":"String","terminalId":"String","accountNumber":"String","approvalNumber":"String","isApproved":false,"_processor":{"processorLogs":["String"],"processorRawResponse":"String","processorReferenceNumber":"String","processorRequestFailed":false,"processorRequestWasApproved":false,"processorResponseCode":"Unknown","processorResponseMessage":"String","expressResponseCode":"String","expressResponseMessage":"String","hostResponseCode":"String","hostResponseMessage":"String","logs":["String"],"rawResponse":"String"},"statusCode":"None","transactionDateTime":"String","transactionId":"String","merchantId":"String","_errors":[{"userMessage":"String","developerMessage":"String","errorType":"String","exceptionMessage":"String","exceptionTypeFullName":"String","exceptionTypeShortName":"String"}],"_hasErrors":true,"_links":[{"href":"/api/v1/paymentAccount/String","method":"PUT","rel":"paymentAccountCredit"},{"href":"/api/v1/paymentAccount/String","method":"DELETE","rel":"paymentAccountCredit"},{"href":"/api/v1/sale/String","method":"POST","rel":"paymentAccountSale"},{"href":"/api/v1/authorization/String","method":"POST","rel":"paymentAccountAuthorization"},{"href":"/api/v1/refund/String","method":"POST","rel":"paymentAccountRefund"}],"_logs":["String"],"_type":"String","_warnings":[{"developerMessage":"String","userMessage":"String"}]}