Website

Payment errors

Last update: 29.01.2024

Payment errors

Errors described in this section are related to the payment process

1. No possibility to buy the packet

{
    "error": {
        "status": 400,
        "title": "Bad Request",
        "detail": "There is no variant with size 123 for category 123"
    }
}

Solution:

  • verify if the packet you are interested in is available for a given category:
GET /api/partner/packets?category_id={categoryId}

 

2. Invalid payment method

{
    "error": {
        "status": 400,
        "title": "Bad Request",
        "detail": "Invalid payment method"
    }
}

Solution:

  • make sure that the payment_method provided in the request is valid:
GET /api/partner/users/me/payment-methods

 

3. Payment method postpaid is not activated

{
    "error": {
        "status": 400,
        "title": "Bad Request",
        "detail": "Payment method 'postpaid' is not activated"
    }
}

Solution:

  • postpaid method is not activated for the OLX account
  • reach out to the local OLX support team to activate this option

 

4. Not enough credits

{
    "error": {
        "status": 400,
        "title": "Bad Request",
        "detail": "Not enough credits"
    }
}

Solution:

  • make sure that there are enough credits on your OLX account to pay for a given feature:
GET /api/partner/users/me/account-balance