{
  "opencollection": "1.0.0",
  "info": {
    "name": "Nomba Charge API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Card Charge",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Submit customer card details",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.nomba.com/v1/checkout/checkout-card-detail",
            "headers": [
              {
                "name": "accountId",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Submits customer card details to initiate a card payment. This is the first step in the server-to-server card charge flow. The API will return instructions for the next step, which typically involves OTP verification or 3D Secure authentication."
        },
        {
          "info": {
            "name": "Submit customer card OTP",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.nomba.com/v1/checkout/checkout-card-otp",
            "headers": [
              {
                "name": "accountId",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Submits the OTP (One-Time Password) sent to the customer phone or email to complete card payment verification. This is typically the second step in the server-to-server card charge flow after card details have been submitted."
        },
        {
          "info": {
            "name": "Resend OTP to customer phone",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.nomba.com/v1/checkout/resend-card-otp",
            "headers": [
              {
                "name": "accountId",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Resends the OTP to the customer phone number if the original OTP was not received, was incorrect, or has expired."
        }
      ]
    },
    {
      "info": {
        "name": "Saved Cards",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get user saved cards",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.nomba.com/v1/checkout/user-card/:orderReference",
            "headers": [
              {
                "name": "accountId",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "orderReference",
                "value": "",
                "type": "path",
                "description": "The order reference used to validate the user session."
              }
            ]
          },
          "docs": "Retrieves cards saved by a user during previous checkout transactions. Requires OTP validation before cards can be fetched to ensure the request is authorized by the card holder."
        },
        {
          "info": {
            "name": "Request OTP to validate user before fetching saved cards",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.nomba.com/v1/checkout/request-user-otp",
            "headers": [
              {
                "name": "accountId",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Requests an OTP to be sent to the customer for validation before their saved cards can be retrieved. This ensures only the card holder can access their saved payment methods."
        }
      ]
    },
    {
      "info": {
        "name": "Order Management",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get order details by order reference",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.nomba.com/v1/checkout/order/:orderReference",
            "headers": [
              {
                "name": "accountId",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "orderReference",
                "value": "",
                "type": "path",
                "description": "The unique order reference generated when the order was created."
              }
            ]
          },
          "docs": "Retrieves the details of a checkout order using the generated order reference. This can be used to check the current status and details of a payment order."
        }
      ]
    }
  ],
  "bundled": true
}