post_charges

You are here

post_charges

post

post_charges

Used to process a charge. Charges are 'Sale', 'Auth', or 'Force' transactions. Sale transactions include the authorization and capture steps in a single request, while Auth transactions must be manually captured in a subsequent request. Force transactions are used in rare situations where the authorization code is being explicitly set.

https://api-cert.sagepayments.com/bankcard/v1 /charges

Name Values Description
type
(required)

The type of transaction to be used.

Name Values Description
clientId
(required)

Application Identifier also known as API Key

merchantId
(required)

Merchant Identifier

merchantKey
(required)

Merchant Key

nonce
(required)

Secure random number used only once

timestamp
(required)

Epoch time stamp

Authorization
(required)

Authorization token, HMAC value of: verb + url + body + merchantId + nonce + timestamp

Content-Type
(required)

Valid values are "application/json"

Name Values Description
request

The data describing the transaction to be processed

HTTP Basic

OAuth 2.0

API Key

Reset

Make a request and see the response.

Make a request and see the response.

Make a request and see the response.

Response Error Details

  • HTTP Code
    Error Code
    Description
  • 400
    400

    Bad Request

  • 401
    401

    Unauthorized

Resource Summary

Security

Content Type

application/json

Category

Charges

Name Type Description
Name Type Description
{
  "code": "<error code>",
  "message": "<error message>",
  "info": "<url to error  page>",
  "detail": "<error details>"
}
Please visit our error page for additional information
https://developer.sagepayments.com/docs/errors
Type Card Numbers
Visa
MasterCard
American Express
Discover

Working...