POST /api-v1/billing/adjust-and-pay

Headers

  • WEAL-TOKEN string Required

    API token (can be retrieved from account settings)

  • TARGET-ORGANIZATION-ID integer

    ID of organization, for which the operation must be performed

application/json

Body Required

  • paymentRequest object
    Hide paymentRequest attributes Show paymentRequest attributes object
    • cardInfo object
      Hide cardInfo attributes Show cardInfo attributes object
      • cardNumber integer Required
      • cardholderName string Required
      • cvv string Required
      • expiryMonth integer(int32) Required
      • expiryYear integer(int32) Required
    • browserInfo object
      Hide browserInfo attributes Show browserInfo attributes object
      • browserAcceptHeader string Required
      • browserColorDepth string Required
      • browserJavaEnabled string Required
      • browserLanguage string Required
      • browserScreenHeight string Required
      • browserScreenWidth string Required
      • browserTimeZone string Required
      • browserUserAgent string Required
    • redirectUrl object Required
      Hide redirectUrl attributes Show redirectUrl attributes object
      • acceptUrl string Required
      • declineUrl string Required
      • exceptionUrl string Required
    • nonInteractive boolean
    • modifyPaymentMethod boolean
  • billingPlans array[object]
    Hide billingPlans attributes Show billingPlans attributes object
    • billingUnitAmount integer
    • billingUnitType string Required

      Values are ORGANIZATION, EMPLOYEE, or PERSON.

Responses

  • 200 application/json

    OK

  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

POST /api-v1/billing/adjust-and-pay
curl \
 --request POST 'https://wyzio.app/api-v1/billing/adjust-and-pay' \
 --header "Content-Type: application/json" \
 --header "WEAL-TOKEN: string" \
 --header "TARGET-ORGANIZATION-ID: 42" \
 --data '{"paymentRequest":{"cardInfo":{"cardNumber":42,"cardholderName":"string","cvv":"string","expiryMonth":42,"expiryYear":42},"browserInfo":{"browserAcceptHeader":"string","browserColorDepth":"string","browserJavaEnabled":"string","browserLanguage":"string","browserScreenHeight":"string","browserScreenWidth":"string","browserTimeZone":"string","browserUserAgent":"string"},"redirectUrl":{"acceptUrl":"string","declineUrl":"string","exceptionUrl":"string"},"nonInteractive":true,"modifyPaymentMethod":true},"billingPlans":[{"billingUnitAmount":42,"billingUnitType":"ORGANIZATION"}]}'
Request examples
# Headers
WEAL-TOKEN: string
TARGET-ORGANIZATION-ID: 42

# Payload
{
  "paymentRequest": {
    "cardInfo": {
      "cardNumber": 42,
      "cardholderName": "string",
      "cvv": "string",
      "expiryMonth": 42,
      "expiryYear": 42
    },
    "browserInfo": {
      "browserAcceptHeader": "string",
      "browserColorDepth": "string",
      "browserJavaEnabled": "string",
      "browserLanguage": "string",
      "browserScreenHeight": "string",
      "browserScreenWidth": "string",
      "browserTimeZone": "string",
      "browserUserAgent": "string"
    },
    "redirectUrl": {
      "acceptUrl": "string",
      "declineUrl": "string",
      "exceptionUrl": "string"
    },
    "nonInteractive": true,
    "modifyPaymentMethod": true
  },
  "billingPlans": [
    {
      "billingUnitAmount": 42,
      "billingUnitType": "ORGANIZATION"
    }
  ]
}
Response examples (200)
{}