Resend Payment OTP
POSThttps://api.pesawise.xyz/api/payments/resend-otp
Resend an OTP to your webhook
Request
Header Parameters
api-key stringrequired
api-secret stringrequired
- application/json
Bodyrequired
paymentIduuidrequired
Unique identifier of the payment.
Example:
ca959474-f61d-424c-8204-bd6e8abc6f11
Responses
- 201
- 400
Otp was sent successfully
Response Headers
- */*
- Schema
- Example (auto)
Schema
messagestringrequired
Description of the request.
Example:
Otp was sent successfully
{
"message": "Otp was sent successfully"
}
Error occurred - bad request
- */*
- Schema
- Example (auto)
Schema
requestIduuid
Request Id for traceability
Example:
d4265597-5317-45fd-8d2f-8012870633d5
detailstring
Detail of the message.
Example:
API key not valid or Internal error
statusstring
Status
Possible values: [API_KEYS_INVALID
, INTERNAL_ERROR
, API_NOT_ACTIVATED
, WEBHOOK_NOT_SPECIFIED_FOR_OTP
, PAYMENT_NOT_FOUND
]
Example:
INTERNAL_ERROR
{
"requestId": "d4265597-5317-45fd-8d2f-8012870633d5",
"detail": "API key not valid or Internal error",
"status": "INTERNAL_ERROR"
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.pesawise.xyz/api/payments/resend-otp");
request.Headers.Add("Accept", "*/*");
var content = new StringContent("{\n \"paymentId\": \"ca959474-f61d-424c-8204-bd6e8abc6f11\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear