The POST /payments call allows your platform to create a new payment. For platforms on blended rate pricing leveraging the Clear product, remember to appropriately calculate fees. To try this request out in the console, update the following parameters with your own information: App-Id, App-Token, Unique-Key, payment_method.
amount required | integer >= 100 Amount in the lowest denomination. For example, $1.00 is represented as 100. This applies to all currencies WePay supports. | ||||||
currency required | string ISO 4217 currency code. Possible values include:
| ||||||
account_id required | string Merchant's account id associated with the payment. | ||||||
required | object The payment method used to create this payment.Note: The payment method's top level data object corresponds with the payment method type. For example, if you set type to | ||||||
auto_capture | boolean For payments with a credit card payment method, set to | ||||||
capture_at | integer or null Designate the time at which this payment will capture using a UNIX epoch timestamp. The capture time cannot be more than 7 days in the future. Note that epoch timestamps use the UTC timezone. | ||||||
object or null Any custom data your platform chooses to attach to this resource. The custom data must be key-value pairs and not contain any personally identifiable information (PII) or payment card (PCI) data. | |||||||
fee_amount | integer >= 0 Specifies the fee amount your platform will collect from the payment. The amount should be in the lowest denomination. For example, $1.00 is represented as 100. This applies to all currencies WePay supports. Note: The upper limit for the fee amount is 20% of the payment. If this field is blank and the merchant is on blended pricing, $0 will be debited from the merchant and credited to your platform account, but WePay’s fees will still be debited from your platform account. Remember to appropriately calculate fees. Payments for merchants on MIC+ should leave this field blank as fees are assessed monthly rather than per transaction. If any number other than 0 is passed it will be ignored, and 0 will be applied and returned. | ||||||
initiated_by | string Indicates who initiated a payment. Possible values include:
| ||||||
object | |||||||
order_id | string or null [ 1 .. 255 ] characters The resource ID of the order that your app associated with this payment. If no order was associated, then the value will be | ||||||
Array of objects or null Any rbit data your platform chooses to attach to this resource. The rbit data must be key-value pairs and can be an array of rbit objects. | |||||||
reference_id | string or null [ 1 .. 255 ] characters A custom reference ID for your platform to track the object. It can be any string. |
INVALID_PARAMS, MERCHANT_ACCOUNT_CANNOT_ACCEPT_PAYMENTS, TRANSACTION_DECLINED, UNSUPPORTED_CURRENCY
NOT_AUTHORIZED
UNEXPECTED_ERROR
{- "amount": 100,
- "currency": "USD",
- "account_id": "{{account_v3_id}}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HQ1NxR1NJYjNEUUVKQXpFTEJna3Foa2lHOXcwQkJ3RXdIQVlKS29aSWh2Y05BUWtGTVE4WERUSXlNRGN5TWpBMU5UazFNMW93S0FZSktvWklodmNOQVFrME1Sc3dHVEFMQmdsZ2hrZ0JaUU1FQWdHaENnWUlLb1pJemowRUF3SXdMd1lKS29aSWh2Y05BUWtFTVNJRUlIQjh4YTJzeXhDS3MwemVQeUM3aW5uOXo4cnpFOG5NREgzbHlCV2Y4STArTUFvR0NDcUdTTTQ5QkFNQ0JFZ3dSZ0loQUxDUXVoTDZ3TnNmR0VsSUR1TzdPUWRZLzg2OGU4WW9XOVZWWlhVRDNleDNBaUVBcE0rUGU5TmxCVXZDOUtEWndiOU9lSUVSc0RoYjQ0UUMxT2x6U3VnYlRYWUFBQUFBQUFBPSIsImhlYWRlciI6eyJwdWJsaWNLZXlIYXNoIjoiM29vRFc2OE1JSzY4WjV0bDhmM3RXUFlhVGd2TVJVZFB0eUxPOW02VlFrdz0iLCJlcGhlbWVyYWxQdWJsaWNLZXkiOiJNRmt3RXdZSEtvWkl6ajBDQVFZSUtvWkl6ajBEQVFjRFFnQUVUd1UyNzgyejlRSm4xcHpwL044L3JYanErejhwSksvWTNZY1ZiY0VURXF6d2RiZTlUQnRhd0dDSjBZZlR1Mnd4d2FCNkowdUlweEsvbEZuaGxGa09yQT09IiwidHJhbnNhY3Rpb25JZCI6IjE1MjcyYmVhOGQ2M2YyZWM4MjcwZmIzZWVjMjNiYTg3ZTQ0NTViZDczN2U1MDhkMjVhYmU5YjI3NDA2NTM1NW",
- "card_holder": {
- "holder_name": "Card Holder Name",
- "email": "example@wepay.com",
- "address": {
- "country": "US",
- "postal_code": "94043"
}
}
}, - "type": "apple_pay"
}, - "custom_data": {
- "my_key": "invoice #54321"
}
}