# Bulk retry notifications POST https://api-sandbox.payabli.com/api/v2/notificationlogs/retry Content-Type: application/json Retry sending multiple notifications (maximum 50 IDs). This is an async process, so use the search endpoint again to check the notification status. This endpoint requires the `notifications_create` permission. Reference: https://docs.payabli.com/developers/api-reference/notification-logs/bulk-retry-notification-logs ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Bulk Retry Notification Logs version: endpoint_notificationlogs.bulkRetryNotificationLogs paths: /v2/notificationlogs/retry: post: operationId: bulk-retry-notification-logs summary: Bulk Retry Notification Logs description: >- Retry sending multiple notifications (maximum 50 IDs). This is an async process, so use the search endpoint again to check the notification status. This endpoint requires the `notifications_create` permission. tags: - - subpackage_notificationlogs parameters: - name: requestToken in: header required: true schema: type: string responses: '201': description: >- A success response indicating the notifications are being retried. This is an async process, so refresh the search to see updated status. content: application/json: schema: type: object properties: {} requestBody: content: application/json: schema: $ref: '#/components/schemas/type_notificationlogs:BulkRetryRequest' components: schemas: type_notificationlogs:BulkRetryRequest: type: array items: type: string format: uuid ``` ## SDK Code Examples ```python import uuid from payabli import payabli client = payabli( api_key="YOUR_API_KEY", ) client.notificationlogs.bulk_retry_notification_logs( request=[ uuid.UUID( "550e8400-e29b-41d4-a716-446655440000", ), uuid.UUID( "550e8400-e29b-41d4-a716-446655440001", ), uuid.UUID( "550e8400-e29b-41d4-a716-446655440002", ), ], ) ``` ```typescript import { PayabliClient } from "@payabli/sdk-node"; const client = new PayabliClient({ apiKey: "YOUR_API_KEY" }); await client.notificationlogs.bulkRetryNotificationLogs(["550e8400-e29b-41d4-a716-446655440000", "550e8400-e29b-41d4-a716-446655440001", "550e8400-e29b-41d4-a716-446655440002"]); ``` ```go import ( context "context" option "github.com/payabli/sdk-go/option" sdkgoclient "github.com/payabli/sdk-go/client" uuid "github.com/google/uuid" ) client := sdkgoclient.NewClient( option.WithApiKey( "", ), ) err := client.Notificationlogs.BulkRetryNotificationLogs( context.TODO(), []uuid.UUID{ uuid.MustParse( "550e8400-e29b-41d4-a716-446655440000", ), uuid.MustParse( "550e8400-e29b-41d4-a716-446655440001", ), uuid.MustParse( "550e8400-e29b-41d4-a716-446655440002", ), }, ) ``` ```csharp using PayabliApi; var client = new PayabliApiClient("API_KEY"); await client.Notificationlogs.BulkRetryNotificationLogsAsync( new List() { "550e8400-e29b-41d4-a716-446655440000", "550e8400-e29b-41d4-a716-446655440001", "550e8400-e29b-41d4-a716-446655440002", } ); ``` ```ruby require 'uri' require 'net/http' url = URI("https://api-sandbox.payabli.com/api/v2/notificationlogs/retry") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["requestToken"] = '' request["Content-Type"] = 'application/json' request.body = "[\n \"550e8400-e29b-41d4-a716-446655440000\",\n \"550e8400-e29b-41d4-a716-446655440001\",\n \"550e8400-e29b-41d4-a716-446655440002\"\n]" response = http.request(request) puts response.read_body ``` ```java HttpResponse response = Unirest.post("https://api-sandbox.payabli.com/api/v2/notificationlogs/retry") .header("requestToken", "") .header("Content-Type", "application/json") .body("[\n \"550e8400-e29b-41d4-a716-446655440000\",\n \"550e8400-e29b-41d4-a716-446655440001\",\n \"550e8400-e29b-41d4-a716-446655440002\"\n]") .asString(); ``` ```php request('POST', 'https://api-sandbox.payabli.com/api/v2/notificationlogs/retry', [ 'body' => '[ "550e8400-e29b-41d4-a716-446655440000", "550e8400-e29b-41d4-a716-446655440001", "550e8400-e29b-41d4-a716-446655440002" ]', 'headers' => [ 'Content-Type' => 'application/json', 'requestToken' => '', ], ]); echo $response->getBody(); ``` ```swift import Foundation let headers = [ "requestToken": "", "Content-Type": "application/json" ] let parameters = ["550e8400-e29b-41d4-a716-446655440000", "550e8400-e29b-41d4-a716-446655440001", "550e8400-e29b-41d4-a716-446655440002"] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api-sandbox.payabli.com/api/v2/notificationlogs/retry")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```