Retrieve a pull
curl --request GET \
--url https://api.usehammock.co/pulls/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.usehammock.co/pulls/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.usehammock.co/pulls/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.usehammock.co/pulls/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.usehammock.co/pulls/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.usehammock.co/pulls/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usehammock.co/pulls/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "pull_3Vb7Nm1qWe5R",
"object": "pull",
"employer": "empr_1Qx8Zt2eZvKYlo2C",
"purpose": "payroll_contributions",
"amount": 20000,
"currency": "usd",
"status": "scheduled",
"scheduled_date": "2027-03-19",
"expected_settlement_date": "2027-03-24",
"livemode": true,
"created": "2023-11-07T05:31:56Z",
"payroll": "pay_6Mn2Bv8cXz4L",
"pay_date": "2023-12-25",
"coverage_month": "2027-04",
"failure_code": "insufficient_funds"
}{
"error": {
"type": "invalid_request_error",
"code": "parameter_missing",
"message": "Missing required parameter: employer.",
"param": "employer",
"doc_url": "https://docs.usehammock.co/api/errors#parameter_missing",
"request_id": "req_9Kd2Lm5nPq8R"
}
}Pulls
Retrieve a pull
GET
/
pulls
/
{id}
Retrieve a pull
curl --request GET \
--url https://api.usehammock.co/pulls/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.usehammock.co/pulls/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.usehammock.co/pulls/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.usehammock.co/pulls/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.usehammock.co/pulls/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.usehammock.co/pulls/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usehammock.co/pulls/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "pull_3Vb7Nm1qWe5R",
"object": "pull",
"employer": "empr_1Qx8Zt2eZvKYlo2C",
"purpose": "payroll_contributions",
"amount": 20000,
"currency": "usd",
"status": "scheduled",
"scheduled_date": "2027-03-19",
"expected_settlement_date": "2027-03-24",
"livemode": true,
"created": "2023-11-07T05:31:56Z",
"payroll": "pay_6Mn2Bv8cXz4L",
"pay_date": "2023-12-25",
"coverage_month": "2027-04",
"failure_code": "insufficient_funds"
}{
"error": {
"type": "invalid_request_error",
"code": "parameter_missing",
"message": "Missing required parameter: employer.",
"param": "employer",
"doc_url": "https://docs.usehammock.co/api/errors#parameter_missing",
"request_id": "req_9Kd2Lm5nPq8R"
}
}Authorizations
Headers
Response
The pull.
payroll_contributions: what a reported payroll withheld and contributed.
ichra_installment: the employer's ICHRA allowance for a coverage month, scheduled by
Hammock ahead of payday. employer_contribution: a one-time employer contribution.
account_funding: keeps the employer's FSA funding account at its required level.
Available options:
payroll_contributions, ichra_installment, employer_contribution, account_funding