Create customer charge
Changed onCreate customer charge.
Request
- Base URL: http://localhost:8888/api/v3
- URL: http://localhost:8888/api/v3/openmeter/customers/{customerId}/charges
- Auth: none declared
Path parameters
ULID (Universally Unique Lexicographically Sortable Identifier).
Request body
Example request
{
"labels": {
"env": "test"
},
"currency": "USD",
"cost_basis": {
"fiat_currency": "USD"
},
"invoice_at": "2023-01-01T01:01:01.001Z",
"service_period": {
"from": "2023-01-01T01:01:01.001Z",
"to": "2023-01-01T01:01:01.001Z"
},
"tax_config": {
"stripe": {
"code": "txcd_10000000"
},
"tax_code_id": "01G65Z755AFWAKHE12NY0CQ9FH",
"tax_code": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
}
},
"amount_before_proration": {
"currency": "USD"
},
"feature": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
},
"full_service_period": {
"from": "2023-01-01T01:01:01.001Z",
"to": "2023-01-01T01:01:01.001Z"
},
"billing_period": {
"from": "2023-01-01T01:01:01.001Z",
"to": "2023-01-01T01:01:01.001Z"
}
}Response
Charge created response.
Changes
- info
added to the
///////////////////response propertyallOflist for the response status - info
added to the
///////////////////response propertyallOflist for the response status - info
removed from the
///////////////////response propertyallOflist for the response status - info
removed from the
///////////////////response propertyallOflist for the response status
- info
- info
added the optional property
///////////to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
///////////to the response with the status - info
added the optional property
/to the response with the status - info
added to the
///////////response propertyallOflist for the response status - info
added to the
///////////response propertyallOflist for the response status - info
removed from the
///////////response propertyallOflist for the response status - info
removed from the
///////////response propertyallOflist for the response status
- info