Simulate an ACH credit from another company
curl --request POST \
--url https://rest.staging.nickel.com/sandbox/nickelBanking/accounts/{accountId}/inboundAchCredits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amountCents": 50000,
"companyName": "Acme Customer",
"entryDescription": "INVOICE"
}
'import requests
url = "https://rest.staging.nickel.com/sandbox/nickelBanking/accounts/{accountId}/inboundAchCredits"
payload = {
"amountCents": 50000,
"companyName": "Acme Customer",
"entryDescription": "INVOICE"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({amountCents: 50000, companyName: 'Acme Customer', entryDescription: 'INVOICE'})
};
fetch('https://rest.staging.nickel.com/sandbox/nickelBanking/accounts/{accountId}/inboundAchCredits', 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://rest.staging.nickel.com/sandbox/nickelBanking/accounts/{accountId}/inboundAchCredits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amountCents' => 50000,
'companyName' => 'Acme Customer',
'entryDescription' => 'INVOICE'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://rest.staging.nickel.com/sandbox/nickelBanking/accounts/{accountId}/inboundAchCredits"
payload := strings.NewReader("{\n \"amountCents\": 50000,\n \"companyName\": \"Acme Customer\",\n \"entryDescription\": \"INVOICE\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://rest.staging.nickel.com/sandbox/nickelBanking/accounts/{accountId}/inboundAchCredits")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amountCents\": 50000,\n \"companyName\": \"Acme Customer\",\n \"entryDescription\": \"INVOICE\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://rest.staging.nickel.com/sandbox/nickelBanking/accounts/{accountId}/inboundAchCredits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amountCents\": 50000,\n \"companyName\": \"Acme Customer\",\n \"entryDescription\": \"INVOICE\"\n}"
response = http.request(request)
puts response.read_body{
"simulatedCredit": {
"accountId": "cmf1nba0001qz8x4k2v7c9d3e",
"amountCents": 50000,
"companyName": "ACME CUSTOMER",
"entryDescription": "INVOICE"
}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Sandbox
Simulate an ACH credit from another company
Sandbox only. Another company sends an ACH credit to the account, as a customer paying by bank transfer would. The sandbox bank accepts it at once, and the account’s balanceCents rises within a few seconds, once Nickel books it. Use it to put money in a sandbox account. companyName and entryDescription default to SANDBOX PAYER CO and DEPOSIT, and are uppercased. Production answers 400. Needs “Can see Nickel Banking balance”.
POST
/
sandbox
/
nickelBanking
/
accounts
/
{accountId}
/
inboundAchCredits
Simulate an ACH credit from another company
curl --request POST \
--url https://rest.staging.nickel.com/sandbox/nickelBanking/accounts/{accountId}/inboundAchCredits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amountCents": 50000,
"companyName": "Acme Customer",
"entryDescription": "INVOICE"
}
'import requests
url = "https://rest.staging.nickel.com/sandbox/nickelBanking/accounts/{accountId}/inboundAchCredits"
payload = {
"amountCents": 50000,
"companyName": "Acme Customer",
"entryDescription": "INVOICE"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({amountCents: 50000, companyName: 'Acme Customer', entryDescription: 'INVOICE'})
};
fetch('https://rest.staging.nickel.com/sandbox/nickelBanking/accounts/{accountId}/inboundAchCredits', 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://rest.staging.nickel.com/sandbox/nickelBanking/accounts/{accountId}/inboundAchCredits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amountCents' => 50000,
'companyName' => 'Acme Customer',
'entryDescription' => 'INVOICE'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://rest.staging.nickel.com/sandbox/nickelBanking/accounts/{accountId}/inboundAchCredits"
payload := strings.NewReader("{\n \"amountCents\": 50000,\n \"companyName\": \"Acme Customer\",\n \"entryDescription\": \"INVOICE\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://rest.staging.nickel.com/sandbox/nickelBanking/accounts/{accountId}/inboundAchCredits")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amountCents\": 50000,\n \"companyName\": \"Acme Customer\",\n \"entryDescription\": \"INVOICE\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://rest.staging.nickel.com/sandbox/nickelBanking/accounts/{accountId}/inboundAchCredits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amountCents\": 50000,\n \"companyName\": \"Acme Customer\",\n \"entryDescription\": \"INVOICE\"\n}"
response = http.request(request)
puts response.read_body{
"simulatedCredit": {
"accountId": "cmf1nba0001qz8x4k2v7c9d3e",
"amountCents": 50000,
"companyName": "ACME CUSTOMER",
"entryDescription": "INVOICE"
}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
Body
application/json
