Skip to navigation

Add Authorize.net Saved Card

View as Markdown

Adds a card to the customer’s Authorize.net profile. Requires customer billing address.

Required body fields: cardNumber, cardExpiry, cardCvv.

Response fields: saved card profile fields including customerProfileId, customerPaymentProfileId, and masked cardDetails.

Possible errors:

  • 400: Missing card profile - delete route did not include customerPaymentProfileId.
  • 400: Please set your billing address to continue - billing address is required to add a card.
  • 404: Billing address not found - saved billing address reference is invalid.
  • 404: Saved card not found - card profile does not exist or is inactive.
  • 400: Authorize.net card profile was not created - gateway did not return profile ids.
  • 400: Missing One or More Required Parameters - required body/query fields were not supplied.
  • 401: Unauthorized - token is missing, expired, invalid, or the account/token pair was not found.
  • 403: Access denied - gateway traffic guard/rate policy blocked the request.
  • 429: Too many requests - gateway rate limit exceeded.
  • 500: Unexpected Error - unhandled gateway or downstream service failure.

Request

This endpoint expects an object.
cardCvvstringRequired
cardExpirystringRequired
cardNumberstringRequired

Response

OK
key_0integer
key_1string
key_2double
key_3string
key_4boolean

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error