UseePay Open API
UseePay Portal
Product Docs
  • V2.0
  • V1.0
Mechant Dashboard
UseePay Portal
Product Docs
  • V2.0
  • V1.0
Mechant Dashboard
  1. developer
  • Intergration
    • About Payment Methods
      • Card
      • Apple Pay
      • Google Pay
      • Klarna
      • Naver pay
      • Kakao Pay
      • Toss Pay
      • Payco
      • Affirm
    • subscription
      • Get started with Subscription
    • online payment
      • Get started with online payments
    • Payment Capabilities
      • Adaptive Price
  • developer
    • Introduction
    • Authentication
    • Errors
    • error code
      • last_payment_error documentation
    • Best Integration
      • Quickly create a paymentIntent for a subscription
      • Auto-Charge Subscription Guide
    • Payment Intents
      • Payment Intent Overview
      • Quickly create a paymentIntent
      • Create a PaymentIntent
      • Retrieve a PaymentIntent
      • Update a PaymentIntent
      • Confirm a PaymentIntent
      • Cancel a PaymentIntent
      • Capture a PaymentIntent
      • List all payment intents
    • Customers
      • Create a customer
      • Retrieves a customer
      • Update a customer
      • List all customers
    • Subscriptions
      • Create a subscription
      • Retrieves a subscription
      • Update a subscription
      • List all subscriptions
      • Cancel a subscription
    • Invoices
      • Create a invoice
      • Retrieves a invoice
      • List all invoices
      • Pay a invoice
    • 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
      • List all mandates
    • Refunds
      • Create a refund
      • Retrieves a refund
      • List all refunds
    • Webhooks
      • Webhook events
      • Webhook Activation/Signature Verification Steps
      • Create a webhook
      • Retrieves a webhook
      • Update a webhook
      • List all webhooks
    • Embedded Checkout
      • Payment Elements
    • case
    • objects
    • About Testing
      • Test Cards
      • ApplePay&GooglePay
  • message
    • Messaging Element
  • FAQ
    • Unable to receive Webhook notifications
  1. developer

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
last_payment_error documentation
Built with