UseePay API
    UseePay API
    • Introduction
    • Product Overview
    • Authentication
    • Errors
    • Changelog
    • Integration
      • Get started with online payments
      • Get started with subscriptions
    • Payment Intents
      • Create a PaymentIntent
        POST
      • Retrieve a PaymentIntent
        GET
      • Update a PaymentIntent
        POST
      • Confirm a PaymentIntent
        POST
      • Cancel a PaymentIntent
        POST
      • Capture a PaymentIntent
        POST
      • List all payment intents
        GET
    • Customers
      • Create a customer
        POST
      • Retrieves a customer
        GET
      • Update a customer
        POST
      • List all customers
        GET
    • Subscriptions
      • Create a subscription
        POST
      • Retrieves a subscription
        GET
      • Update a subscription
        POST
      • List all subscriptions
        GET
      • Cancel a subscription
        POST
    • Invoices
      • Create a invoice
        POST
      • Retrieves a invoice
        GET
      • Update a invoice
        POST
      • List all invoices
        GET
      • Pay a invoice
        POST
    • Payment Methods
      • Create a payment method
      • Retrieves a payment method
      • Update a payment method
      • List all payment methods
    • Mandates
      • Create a mandate
      • Retrieves a mandate
      • Update a mandate
      • List all mandates
    • Refunds
      • Create a refund
      • Retrieves a refund
      • Update a refund
      • List all refunds
    • Webhooks
      • Webhook envents
      • Create a webhook
      • Retrieves a webhook
      • Update a webhook
      • List all webhooks
    • Payment Links
      • Create a payment link
      • Retrieves a payment link
      • Update a payment link
      • List all payment links
    • Embedded Checkout
      • Payment Elements
    • About Testing
      • Test Cards
      • ApplePay&GooglePay

    Errors

    UseePay uses conventional HTTP response codes to indicate the success or failure of an API request. Typically a status code in the 2xx range indicates success, status codes in the 4xx range indicate an error that has been triggered due to the information provided (for example; a parameter does not meet the validation requirements or was not provided), and status codes in the 5xx range indicate an error with UseePay servers.
    When we send an error response, the body will generally contain the following fields:

    Response body attributes#

    JSON FieldDescription
    codeError codes (please refer to reference table)
    sourceName of the request parameter that caused the error
    messageDescription of the error

    HTTP status codes#

    CodeDescription
    200OK - The request was processed successfully
    201Created - The request was processed successfully
    400Bad request - The request contains missing parameters, is in an incorrect shape, or failed another validation test
    401Unauthorized - Please verify that the authentication token is provided and is valid
    404Not found - The requested endpoint does not exist
    500Server error - Something went wrong on our end; please let us know if you are receiving this error

    Error codes#

    CodeMessage
    already_existsThe entity requested to be created already exists
    field_requiredA mandatory field in the request is missing
    invalid_argumentA provided argument has an incorrect type or failed a validation test
    service_unavailableThe requested service is currently unavailable due to operating hours limitations, or because a third-party service is temporarily unavailable
    Modified at 2024-10-29 10:10:06
    Previous
    Authentication
    Next
    Changelog
    Built with