Skip to main content

Documentation

Retrieve Group Payment

Retrieve details of a group payment.

    • group_payment

    • ID of the group payment. String starting with gp_.

Code Samples
    • .NET

      • using System;
        
        namespace RapydApiRequestSample
        {
            class Program
            {
                static void Main(string[] args)
                {
                    try
                    {
                        string payment = "gp_7e2b7abee522ba5089eb98c7482991ea";
        
                        string result = RapydApiRequestSample.Utilities.MakeRequest("GET", $"/v1/payments/group_payments/{payment}");
        
                        Console.WriteLine(result);
                    }
                    catch (Exception e)
                    {
                        Console.WriteLine("Error completing request: " + e.Message);
                    }
                }
            }
        }
    • JavaScript

      • const makeRequest = require('<path-to-your-utility-file>/utilities').makeRequest;
        
        async function main() {
          try {
            const result = await makeRequest(
              'GET',
              '/v1/payments/group_payments/gp_b2eb53a2624345dc3701d59ccac2facd'
            );
        
            console.log(result);
          } catch (error) {
            console.error('Error completing request', error);
          }
        }
        
    • PHP

      • <?php
        $path = $_SERVER['DOCUMENT_ROOT'];
        $path .= "/<path-to-your-utility-file>/utilities.php";
        include($path);
        try {
            $object = make_request('get', '/v1/payments/group_payments/gp_d5463a9c56c3180b40a4623df37091c3');
            var_dump($object);
        } catch(Exception $e) {
            echo "Error: $e";
        }
        ?>
    • Python

      • from pprint import pprint
        
        from utilities import make_request
        
        group_payment = "gp_22c833729a6a442b13ae2a3b4f745907"
        response = make_request(method='get',
                                path=f'/v1/payments/group_payments/{group_payment}')
        
        pprint(response)
        
  • /v1/payments/group_payments/:group_payment

  • Retrieve Group Payment

  • curl -X get 'https://sandboxapi.rapyd.net/v1/payments/group_payments/gp_07823bc646fab8d16d6d7807a5eabcb3' \
    -H 'access_key: your-access-key-here' \
    -H 'Content-Type: application/json' \
    -H 'salt: your-random-string-here' \
    -H 'signature: your-calculated-signature-here' \
    -H 'timestamp: your-unix-timestamp-here'
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "2e66b2a8-fcb6-4e8b-8849-6a3ebe20f7b8"
        },
        "data": {
            "id": "gp_07823bc646fab8d16d6d7807a5eabcb3",
            "amount": 250,
            "amount_to_replace": 0,
            "status": "closed",
            "currency": "GBP",
            "country": "GB",
            "merchant_reference_id": "2025-10-21a",
            "description": "",
            "metadata": {},
            "expiration": null,
            "cancel_reason": null,
            "payments": [
                {
                    "id": "payment_bae62b77765e206e2ff6439e96d63fed",
                    "amount": 200,
                    "original_amount": 200,
                    "is_partial": false,
                    "currency_code": "GBP",
                    "country_code": "GB",
                    "status": "CLO",
                    "description": "",
                    "merchant_reference_id": "",
                    "customer_token": "cus_54eaa2330fe7a540757083c76eef3f51",
                    "payment_method": null,
                    "payment_method_data": {
                        "id": null,
                        "type": "gb_visa_card",
                        "category": "card",
                        "metadata": null,
                        "image": "",
                        "webhook_url": "",
                        "supporting_documentation": "",
                        "next_action": "not_applicable",
                        "name": "John Doe",
                        "last4": "1111",
                        "acs_check": "unchecked",
                        "cvv_check": "unchecked",
                        "bin_details": {
                            "type": "DEBIT",
                            "brand": "VISA",
                            "level": "CLASSIC",
                            "issuer": "CONOTOXIA SP. Z O.O",
                            "country": "PL",
                            "bin_number": "411111"
                        },
                        "expiration_year": "30",
                        "expiration_month": "12",
                        "fingerprint_token": "ocfp_e599f990674473ce6283b245e9ad2467",
                        "network_reference_id": "123456",
                        "payment_account_reference": "V0010I74FB9MVP52ZJDFVUWLOGDXT"
                    },
                    "auth_code": null,
                    "expiration": 1761643474,
                    "captured": true,
                    "refunded": false,
                    "refunded_amount": 0,
                    "receipt_email": "",
                    "redirect_url": "",
                    "complete_payment_url": "https://complete.rapyd.net",
                    "error_payment_url": "https://error.rapyd.net",
                    "receipt_number": "",
                    "flow_type": "",
                    "address": null,
                    "statement_descriptor": "Doc Team",
                    "transaction_id": "",
                    "created_at": 1761038674,
                    "metadata": {},
                    "failure_code": "",
                    "failure_message": "",
                    "paid": true,
                    "paid_at": 1761038674,
                    "dispute": null,
                    "refunds": null,
                    "order": null,
                    "outcome": null,
                    "visual_codes": {},
                    "textual_codes": {},
                    "instructions": [],
                    "ewallet_id": "ewallet_b5320c566cc4aa01fe77440ad08693f7",
                    "ewallets": [
                        {
                            "ewallet_id": "ewallet_b5320c566cc4aa01fe77440ad08693f7",
                            "amount": 200,
                            "percent": 100,
                            "refunded_amount": 0
                        }
                    ],
                    "payment_method_options": {},
                    "payment_method_type": "gb_visa_card",
                    "payment_method_type_category": "card",
                    "fx_rate": 1,
                    "merchant_requested_currency": null,
                    "merchant_requested_amount": null,
                    "fixed_side": "",
                    "payment_fees": null,
                    "invoice": "",
                    "escrow": null,
                    "group_payment": "gp_07823bc646fab8d16d6d7807a5eabcb3",
                    "cancel_reason": null,
                    "initiation_type": "customer_present",
                    "mid": "",
                    "next_action": "not_applicable",
                    "error_code": "",
                    "remitter_information": {},
                    "save_payment_method": false,
                    "merchant_advice_code": null,
                    "merchant_advice_message": null,
                    "transaction_link_id": null
                },
                {
                    "id": "payment_ff906d5f1bcc7813799085d317be79d0",
                    "amount": 50,
                    "original_amount": 50,
                    "is_partial": false,
                    "currency_code": "GBP",
                    "country_code": "GB",
                    "status": "CLO",
                    "description": "",
                    "merchant_reference_id": "",
                    "customer_token": "cus_4e25112ac20e144ad073a614dc46934b",
                    "payment_method": null,
                    "payment_method_data": {
                        "id": null,
                        "type": "gb_amex_card",
                        "category": "card",
                        "metadata": null,
                        "image": "",
                        "webhook_url": "",
                        "supporting_documentation": "",
                        "next_action": "not_applicable",
                        "name": "Jane Doe",
                        "last4": "1111",
                        "acs_check": "unchecked",
                        "cvv_check": "unchecked",
                        "bin_details": {
                            "type": "DEBIT",
                            "brand": "VISA",
                            "level": "CLASSIC",
                            "issuer": "CONOTOXIA SP. Z O.O",
                            "country": "PL",
                            "bin_number": "411111"
                        },
                        "expiration_year": "30",
                        "expiration_month": "12",
                        "fingerprint_token": "ocfp_e599f990674473ce6283b245e9ad2467",
                        "network_reference_id": "123456",
                        "payment_account_reference": "V001K92UBTE59ZFUPQFIN9HE7A9W5"
                    },
                    "auth_code": null,
                    "expiration": 1761643474,
                    "captured": true,
                    "refunded": false,
                    "refunded_amount": 0,
                    "receipt_email": "",
                    "redirect_url": "",
                    "complete_payment_url": "https://complete.rapyd.net",
                    "error_payment_url": "https://error.rapyd.net",
                    "receipt_number": "",
                    "flow_type": "",
                    "address": null,
                    "statement_descriptor": "Doc Team",
                    "transaction_id": "",
                    "created_at": 1761038674,
                    "metadata": {},
                    "failure_code": "",
                    "failure_message": "",
                    "paid": true,
                    "paid_at": 1761038674,
                    "dispute": null,
                    "refunds": null,
                    "order": null,
                    "outcome": null,
                    "visual_codes": {},
                    "textual_codes": {},
                    "instructions": [],
                    "ewallet_id": "ewallet_c1943cfeda5f98247ab117e5d2648861",
                    "ewallets": [
                        {
                            "ewallet_id": "ewallet_c1943cfeda5f98247ab117e5d2648861",
                            "amount": 50,
                            "percent": 100,
                            "refunded_amount": 0
                        }
                    ],
                    "payment_method_options": {},
                    "payment_method_type": "gb_amex_card",
                    "payment_method_type_category": "card",
                    "fx_rate": 1,
                    "merchant_requested_currency": null,
                    "merchant_requested_amount": null,
                    "fixed_side": "",
                    "payment_fees": null,
                    "invoice": "",
                    "escrow": null,
                    "group_payment": "gp_07823bc646fab8d16d6d7807a5eabcb3",
                    "cancel_reason": null,
                    "initiation_type": "customer_present",
                    "mid": "",
                    "next_action": "not_applicable",
                    "error_code": "",
                    "remitter_information": {},
                    "save_payment_method": false,
                    "merchant_advice_code": null,
                    "merchant_advice_message": null,
                    "transaction_link_id": null
                }
            ]
        }
    }