curl --request POST \
--url https://sandbox-platform.jupico.com/v1/transactions/creditcard/sale \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"subMerchantId": "jpt-sim-md-1",
"paymentToken": {
"type": "creditcard",
"token": {
"provider": "jupico",
"token": "5dd19881-b437-42b0-9c9b-7773ebb598eb"
}
},
"amount": 40,
"cardHolderInitiated": true
}
'{
"success": true,
"data": {
"status": "<string>",
"transactionId": "<string>",
"approvalNumber": "<string>",
"operation": "<string>",
"subMerchantId": "<string>",
"amount": 123,
"txDate": "<string>",
"referenceNumber": "<string>",
"referenceId": "<string>",
"taxAmount": 123,
"taxWithHold": true,
"items": [
{
"description": "Consulting services",
"quantity": 5,
"amount": 100,
"taxRate": 123
}
],
"balanceAmount": 123,
"parentId": "<string>",
"description": "<string>",
"dynamicFee": {
"discountRatePerc": 123,
"fixed": 123
},
"paymentMethod": {
"type": "<string>",
"eCheck": {},
"cc": {
"card": {
"cardHolderName": "<string>",
"last4Digits": "<string>",
"expirationMonth": "<string>",
"expirationYear": "<string>",
"logo": "<string>"
},
"provider": "<string>",
"cardHolderInitiated": true,
"networkTransactionID": "<string>",
"token": "<string>"
}
},
"billing": {
"name": "<string>",
"email": "<string>",
"address": "<string>",
"city": "<string>",
"zipCode": "<string>",
"state": "<string>",
"country": "<string>",
"phone": "<string>"
},
"shipping": {
"address": "<string>",
"city": "<string>",
"zipCode": "<string>",
"state": "<string>",
"country": "<string>",
"email": "<string>",
"name": "<string>",
"phone": "<string>"
},
"validations": {
"avs": {
"addressNumber": "<string>",
"addressPostalCode": "<string>"
},
"cvv": {
"cvcCheck": "<string>"
}
},
"paymentToken": {
"type": "<string>",
"token": {
"provider": "<string>",
"token": "<string>",
"cardHolderName": "<string>",
"expirationMonth": "<string>",
"expirationYear": "<string>",
"logo": "<string>",
"cardLogo": "<string>",
"last4Digits": "<string>",
"truncatedCardNumber": "<string>"
}
}
},
"message": "<string>",
"code": "<string>"
}Process a card sale
A sale combines authorization and capture in one transaction. Use it when purchases are fulfilled immediately, such as retail or e-commerce checkout. If the issuing bank approves, an approval code is returned; if it declines, the response includes the decline reason.
curl --request POST \
--url https://sandbox-platform.jupico.com/v1/transactions/creditcard/sale \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"subMerchantId": "jpt-sim-md-1",
"paymentToken": {
"type": "creditcard",
"token": {
"provider": "jupico",
"token": "5dd19881-b437-42b0-9c9b-7773ebb598eb"
}
},
"amount": 40,
"cardHolderInitiated": true
}
'{
"success": true,
"data": {
"status": "<string>",
"transactionId": "<string>",
"approvalNumber": "<string>",
"operation": "<string>",
"subMerchantId": "<string>",
"amount": 123,
"txDate": "<string>",
"referenceNumber": "<string>",
"referenceId": "<string>",
"taxAmount": 123,
"taxWithHold": true,
"items": [
{
"description": "Consulting services",
"quantity": 5,
"amount": 100,
"taxRate": 123
}
],
"balanceAmount": 123,
"parentId": "<string>",
"description": "<string>",
"dynamicFee": {
"discountRatePerc": 123,
"fixed": 123
},
"paymentMethod": {
"type": "<string>",
"eCheck": {},
"cc": {
"card": {
"cardHolderName": "<string>",
"last4Digits": "<string>",
"expirationMonth": "<string>",
"expirationYear": "<string>",
"logo": "<string>"
},
"provider": "<string>",
"cardHolderInitiated": true,
"networkTransactionID": "<string>",
"token": "<string>"
}
},
"billing": {
"name": "<string>",
"email": "<string>",
"address": "<string>",
"city": "<string>",
"zipCode": "<string>",
"state": "<string>",
"country": "<string>",
"phone": "<string>"
},
"shipping": {
"address": "<string>",
"city": "<string>",
"zipCode": "<string>",
"state": "<string>",
"country": "<string>",
"email": "<string>",
"name": "<string>",
"phone": "<string>"
},
"validations": {
"avs": {
"addressNumber": "<string>",
"addressPostalCode": "<string>"
},
"cvv": {
"cvcCheck": "<string>"
}
},
"paymentToken": {
"type": "<string>",
"token": {
"provider": "<string>",
"token": "<string>",
"cardHolderName": "<string>",
"expirationMonth": "<string>",
"expirationYear": "<string>",
"logo": "<string>",
"cardLogo": "<string>",
"last4Digits": "<string>",
"truncatedCardNumber": "<string>"
}
}
},
"message": "<string>",
"code": "<string>"
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
API support various types of use. Required fields are defined by the most basic call. For other uses be sure to send the required information defined in the schema and examples.
Unique identifier of the submerchant.
The amount to charge.
True when the cardholder actively initiates the payment; false for merchant-initiated transactions such as recurring charges.
Free-text description of the transaction.
The total amount of sales tax must be between: Visa: 0.1% - 18% MasterCard: 0.1% - 23% Default: 0.1% - 50%
When true, the sales tax portion is withheld from the merchant's settlement until released.
Defines the platform fee that the service provider charges the merchant for the transaction. The fee is calculated using fixed and discountRatePerc and deducted from the merchant's transaction proceeds when payouts are calculated. It does not increase or otherwise modify the transaction amount submitted for processing.
Defines the payment-processing fee that the service provider charges the merchant for the transaction. The fee is calculated using the supported fixed and percentage values, deducted from the merchant's transaction proceeds, and accounted for separately from the platform fee. It does not increase or otherwise modify the transaction amount submitted for processing.
Card verification code (CVV/CVC).
Your own reference for this transaction. Returned in responses and query results for reconciliation.
Billing contact and address details for the payer.
Hide child attributes
Hide child attributes
Street address, including number.
City name.
ZIP or postal code.
Two-letter US state code.
Two-letter ISO 3166-1 country code. Sets which state codes and postal code format are validated.
Email address of the payer.
Full name of the payer.
Phone number of the payer.
Shipping contact and address details for the order.
Hide child attributes
Hide child attributes
Street address, including number.
City name.
ZIP or postal code.
Two-letter US state code.
Two-letter ISO 3166-1 country code. Sets which state codes and postal code format are validated.
Email address of the recipient.
Name of the recipient.
Phone number of the recipient.
metadata is an object that can host as much as 50 key-value pairs, where the keys can be at most 40 char length and can’t include the characters “[“ or “]”, and the values must be strings and cannot exceed 500 chars Learn more about metadata
Hide child attributes
Hide child attributes
500Response
Successful sale
Whether the request was processed successfully. Declines return HTTP 200 with success: false.
The response payload.
Hide child attributes
Hide child attributes
Current status.
Unique identifier of the original transaction.
Approval code returned by the issuing bank.
Transaction operation type (for example, sale, authorization, refund).
Unique identifier of the submerchant.
The amount of the transaction.
Date and time of the transaction (ISO 8601).
Processor reference number for the transaction.
Your own reference for this transaction. Returned in responses and query results for reconciliation.
Sales tax portion of the amount.
When true, the sales tax portion is withheld from the merchant's settlement until released.
Line items included in the total amount.
Remaining balance on the transaction after captures, refunds, and voids.
Identifier of the parent transaction (for example, the authorization behind a capture).
Free-text description.
Defines the platform fee that the service provider charges the merchant for the transaction. The fee is calculated using fixed and discountRatePerc and deducted from the merchant's transaction proceeds when payouts are calculated. It does not increase or otherwise modify the transaction amount submitted for processing.
Details of the payment method used.
Hide child attributes
Hide child attributes
The type.
eCheck (ACH) acceptance settings.
Card payment method details.
Hide child attributes
Hide child attributes
Card details.
Hide child attributes
Hide child attributes
Name of the cardholder.
Last 4 digits of the card number.
Two-digit expiration month (01-12).
Two-digit expiration year.
Card brand logo identifier.
Payment provider that issued the token.
True when the cardholder actively initiates the payment; false for merchant-initiated transactions such as recurring charges.
Card network transaction identifier, used for merchant-initiated follow-on transactions.
The token value.
Billing contact and address details for the payer.
Hide child attributes
Hide child attributes
Full name of the payer.
Email address of the payer.
Street address, including number.
City name.
ZIP or postal code.
Two-letter US state code.
Two-letter ISO 3166-1 country code.
Phone number of the payer.
Shipping contact and address details for the order.
Hide child attributes
Hide child attributes
Street address, including number.
City name.
ZIP or postal code.
Two-letter US state code.
Two-letter ISO 3166-1 country code.
Email address of the recipient.
Name of the recipient.
Phone number of the recipient.
Verification results returned by the issuer.
Hide child attributes
Hide child attributes
The payment credential to charge: a one-time token from the web component or a stored Jupico token.
Hide child attributes
Hide child attributes
Type of token supplied.
Token payload returned by tokenization.
Hide child attributes
Hide child attributes
Payment provider that issued the token (for example, jupico).
The token value.
Name of the cardholder.
Two-digit expiration month (01-12).
Two-digit expiration year.
Card brand logo identifier.
Card brand logo identifier.
Last 4 digits of the card number.
Masked card number.
Human-readable result message.
Machine-readable result code. See the Error Codes reference.
Was this page helpful?

