> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.ordergroove.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.ordergroove.com/_mcp/server.

# Retrieve placement responses

GET https://restapi.ordergroove.com/placement_logs/responses/

Returns placement responses, oldest first, using cursor-based pagination. Requires Application API Scope. For how to page through the results, see [Cursor Pagination](/api-reference/cursor-pagination), and for what each field holds, see [Order Billing Attempts](/api-reference/order-billing-attempts).

Reference: https://developer.ordergroove.com/reference/payment-attempt-data-api/placement-responses/retrieve-placement-responses

## Authentication

- `x-api-key` header (required) — Application API Scope — server-to-server, sent in the `x-api-key` header. See [Authentication](/api-reference/authentication).

## Servers

- `https://restapi.ordergroove.com` (Production server, default)
- `https://staging.restapi.ordergroove.com` (Staging server)

## Request

### Query parameters

- `start_date` (datetime, optional) — Filter by entries created on or after a specific date/time. Expected format is `YYYY-MM-DD HH:mm:ss`
- `end_date` (datetime, optional) — Filter by entries created before (non-inclusive) a specific date/time. Expected format is `YYYY-MM-DD HH:mm:ss`
- `page_size` (double, optional) — Number of results to be retrieved in each page. Default value is 10. Maximum allowed is 1000.

## Response

### 200

Successful retrieval of placement responses

- `next` (string, optional, nullable) — URL for the next page of results, or null if at the last page
- `previous` (string, optional, nullable) — URL for the previous page of results, or null if at the first page
- `results` (list of PlacementLogsResponsesGetResponsesContentApplicationJsonSchemaResultsItems, optional)

## Errors

### 400 Bad Request Error

Invalid request

- `response_message` (string, optional)

### 401 Unauthorized Error

Unauthorized request

- `response_message` (string, optional)

### 403 Forbidden Error

Forbidden request

- `response_message` (string, optional)

### 500 Internal Server Error

Internal server error

- `response_message` (string, optional)

## Types

### PlacementLogsResponsesGetResponsesContentApplicationJsonSchemaResultsItems

- `public_id` (string, optional) — Unique identifier for this placement response
- `merchant` (string, optional) — The public ID of the merchant
- `order` (string, optional) — The original public ID for the order
- `customer` (string, optional) — The ID of the merchant user
- `response_code` (string, optional) — The original system response code. - `000`: Success - `140`: Payment declined
- `response_message` (string, optional) — Description of the response or error
- `response_order_id` (string, optional, nullable) — Order identifier in merchant's system, if applicable
- `created` (datetime, optional) — Timestamp when the response was created
- `response_payload` (string, optional, nullable) — The order placement response Ordergroove received, usually XML. Any `transactionData` element is moved out to `transaction_response`. Its structure depends on the platform.
- `transaction_response` (string, optional, nullable) — The payment transaction the platform reported, as a `transactionData` XML element. Included only for Shopify merchants, and only when the billing attempt has exactly one transaction; `null` otherwise. Its structure comes from upstream payment systems and can change without notice.

## Examples

**Response**

```json
{
  "next": "https://restapi.ordergroove.com/placement_logs/responses/?cursor=cD0yMDI0LTA4LTA0KzE2JTNBNTglM0ExMi4yNDUwMDA%3D",
  "previous": "https://restapi.ordergroove.com/placement_logs/responses/?cursor=cD0yMDI0LTA4LTA0KzE2JTNBNTglM0ExMi4yNDUwMDA%3D",
  "results": [
    {
      "public_id": "3f2a9c1e7b4d4e8a9c0d1e2f3a4b5c6d",
      "merchant": "asdf123",
      "order": "6fda37265d2811ef92240241a91b1780",
      "customer": "12345",
      "response_code": "140",
      "response_message": "Selected Credit Card was declined. Please enter new Credit Card and try again.",
      "response_order_id": null,
      "created": "2024-11-24 08:59:15",
      "response_payload": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><order><code>ERROR</code><errorCode>140</errorCode><errorMsg>Selected Credit Card was declined. Please enter new Credit Card and try again.</errorMsg></order>",
      "transaction_response": null
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://restapi.ordergroove.com/placement_logs/responses/"

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://restapi.ordergroove.com/placement_logs/responses/';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://restapi.ordergroove.com/placement_logs/responses/"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://restapi.ordergroove.com/placement_logs/responses/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://restapi.ordergroove.com/placement_logs/responses/")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://restapi.ordergroove.com/placement_logs/responses/', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://restapi.ordergroove.com/placement_logs/responses/");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://restapi.ordergroove.com/placement_logs/responses/")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
```