curl --request POST \
--url https://sandbox-platform.jupico.com/v1/transactions/creditcard/authorization \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"subMerchantId": "jpt-sim-md-1",
"amount": 100,
"paymentToken": {
"type": "creditcard",
"token": {
"provider": "jupico",
"token": "5dd19881-b437-42b0-9c9b-7773ebb598eb"
}
},
"cardHolderInitiated": true
}
'{
"data": {
"status": "<string>",
"transactionId": "<string>",
"operation": "<string>",
"subMerchantId": "<string>",
"amount": 123,
"balanceAmount": 123,
"parentId": "<string>",
"referenceNumber": "<string>",
"referenceId": "<string>",
"taxAmount": 123,
"txDate": "<string>",
"description": "<string>",
"dynamicFee": {
"discountRatePerc": 123,
"fixed": 123
},
"paymentMethod": {
"cc": {
"card": {
"last4Digits": "<string>",
"expirationYear": "<string>",
"expirationMonth": "<string>",
"logo": "<string>"
},
"cardHolderInitiated": true,
"networkTransactionID": "<string>",
"token": "<string>"
},
"eCheck": {},
"type": "<string>"
},
"billing": {
"name": "<string>",
"email": "<string>",
"address": "<string>",
"city": "<string>",
"zipCode": "<string>",
"state": "<string>",
"country": "<string>",
"phone": "<string>"
},
"approvalNumber": "<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>"
}
}
},
"success": true,
"message": "<string>",
"code": "<string>"
}Authorize a card
An authorization confirms the cardholder’s ability to pay and reserves the amount without charging it. Use it when the final amount is unknown or fulfillment is deferred — for example, tips at a restaurant or a card on file at a hotel. Complete the charge later with Capture.
curl --request POST \
--url https://sandbox-platform.jupico.com/v1/transactions/creditcard/authorization \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"subMerchantId": "jpt-sim-md-1",
"amount": 100,
"paymentToken": {
"type": "creditcard",
"token": {
"provider": "jupico",
"token": "5dd19881-b437-42b0-9c9b-7773ebb598eb"
}
},
"cardHolderInitiated": true
}
'{
"data": {
"status": "<string>",
"transactionId": "<string>",
"operation": "<string>",
"subMerchantId": "<string>",
"amount": 123,
"balanceAmount": 123,
"parentId": "<string>",
"referenceNumber": "<string>",
"referenceId": "<string>",
"taxAmount": 123,
"txDate": "<string>",
"description": "<string>",
"dynamicFee": {
"discountRatePerc": 123,
"fixed": 123
},
"paymentMethod": {
"cc": {
"card": {
"last4Digits": "<string>",
"expirationYear": "<string>",
"expirationMonth": "<string>",
"logo": "<string>"
},
"cardHolderInitiated": true,
"networkTransactionID": "<string>",
"token": "<string>"
},
"eCheck": {},
"type": "<string>"
},
"billing": {
"name": "<string>",
"email": "<string>",
"address": "<string>",
"city": "<string>",
"zipCode": "<string>",
"state": "<string>",
"country": "<string>",
"phone": "<string>"
},
"approvalNumber": "<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>"
}
}
},
"success": true,
"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 authorize.
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 percentage: 0.1% - 18% MasterCard percentage: 0.1% - 23% Default percentage: 0.1% - 50%
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 authorization
The response payload.
Hide child attributes
Hide child attributes
Current status.
Unique identifier of the original transaction.
Transaction operation type (for example, sale, authorization, refund).
Unique identifier of the submerchant.
The amount of the transaction.
Remaining balance on the transaction after captures, refunds, and voids.
Identifier of the parent transaction (for example, the authorization behind a capture).
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.
Date and time of the transaction (ISO 8601).
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
Card payment method details.
Hide child attributes
Hide child attributes
Card details.
Hide child attributes
Hide child attributes
Last 4 digits of the card number.
Two-digit expiration year.
Two-digit expiration month (01-12).
Card brand logo identifier.
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.
eCheck (ACH) acceptance settings.
The type.
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.
Approval code returned by the issuing bank.
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.
Whether the request was processed successfully. Declines return HTTP 200 with success: false.
Human-readable result message.
Machine-readable result code. See the Error Codes reference.
Was this page helpful?

