Meter Event
POST
/meter_event_adjustmentsCreate Meter Event Adjustment
Body — CreateMeterEventAdjustmentDTO. Cancels a previously recorded meter event by cancel_identifier. Stripe accepts cancellation only within 24h of receipt.
Request
Example
curl -X POST 'https://api.paycose.com/api/v1/app1/platform/wallet/meter_event_adjustments/' \
-H 'X-Session-Token: {{session_token}}' \
-H 'X-Country: {{country}}' \
-H 'X-Test-Mode: {{x_test_mode}}' \
-d '{
"event_name": "api_request",
"type": "cancel",
"cancel_identifier": "req_abc123"
}'Headers
| Name | Value | Description |
|---|---|---|
| X-Session-Token | {{session_token}} | |
| X-Country | {{country}} | |
| X-Test-Mode | {{x_test_mode}} | true=wallet_test, false=wallet_live (default). Toggle the x_test_mode collection variable to flip every applicable request. |
Body
| Name | Type | Value |
|---|---|---|
| event_name | string | api_request |
| type | string | cancel |
| cancel_identifier | string | req_abc123 |
{
"event_name": "api_request",
"type": "cancel",
"cancel_identifier": "req_abc123"
}Responses
200200 OK
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
Body
{
"id": "<string>",
"object": "<string>",
"resource": "<string>",
"created_at": "<RFC3339 timestamp>",
"errors": [
{
"code": "<string>",
"message": "<string>"
}
],
"next_action": [
{
"type": "<string>",
"title": "<string>",
"description": "<string>",
"i18n_key": "<string>",
"url": "<string>",
"client_secret": "<string>",
"payment_method": "<string>",
"qr_data": "<string>"
}
]
}400400 Bad Request
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
Body
{
"object": "error",
"code": "<string>",
"key": "<string>",
"i18n_key": "<string>",
"message": "<string>",
"request_id": "<string>"
}